OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ | 5 #ifndef MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ |
6 #define MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ | 6 #define MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 ~VideoRendererImpl() override; | 63 ~VideoRendererImpl() override; |
64 | 64 |
65 // VideoRenderer implementation. | 65 // VideoRenderer implementation. |
66 void Initialize(DemuxerStream* stream, | 66 void Initialize(DemuxerStream* stream, |
67 CdmContext* cdm_context, | 67 CdmContext* cdm_context, |
68 RendererClient* client, | 68 RendererClient* client, |
69 const TimeSource::WallClockTimeCB& wall_clock_time_cb, | 69 const TimeSource::WallClockTimeCB& wall_clock_time_cb, |
70 const PipelineStatusCB& init_cb) override; | 70 const PipelineStatusCB& init_cb) override; |
71 void Flush(const base::Closure& callback) override; | 71 void Flush(const base::Closure& callback) override; |
72 void StartPlayingFrom(base::TimeDelta timestamp) override; | 72 void StartPlayingFrom(base::TimeDelta timestamp) override; |
73 void OnTimeStateChanged(bool time_progressing) override; | 73 void OnTimeProgressing() override; |
| 74 void OnTimeStopped() override; |
74 | 75 |
75 void SetTickClockForTesting(std::unique_ptr<base::TickClock> tick_clock); | 76 void SetTickClockForTesting(std::unique_ptr<base::TickClock> tick_clock); |
76 void SetGpuMemoryBufferVideoForTesting( | 77 void SetGpuMemoryBufferVideoForTesting( |
77 std::unique_ptr<GpuMemoryBufferVideoFramePool> gpu_memory_buffer_pool); | 78 std::unique_ptr<GpuMemoryBufferVideoFramePool> gpu_memory_buffer_pool); |
78 size_t frames_queued_for_testing() const { | 79 size_t frames_queued_for_testing() const { |
79 return algorithm_->frames_queued(); | 80 return algorithm_->frames_queued(); |
80 } | 81 } |
81 | 82 |
82 // VideoRendererSink::RenderCallback implementation. | 83 // VideoRendererSink::RenderCallback implementation. |
83 scoped_refptr<VideoFrame> Render(base::TimeTicks deadline_min, | 84 scoped_refptr<VideoFrame> Render(base::TimeTicks deadline_min, |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 // want to discard video frames that might be received after the stream has | 294 // want to discard video frames that might be received after the stream has |
294 // been reset. | 295 // been reset. |
295 base::WeakPtrFactory<VideoRendererImpl> frame_callback_weak_factory_; | 296 base::WeakPtrFactory<VideoRendererImpl> frame_callback_weak_factory_; |
296 | 297 |
297 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); | 298 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); |
298 }; | 299 }; |
299 | 300 |
300 } // namespace media | 301 } // namespace media |
301 | 302 |
302 #endif // MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ | 303 #endif // MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ |
OLD | NEW |