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 <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 ~VideoRendererImpl() override; | 58 ~VideoRendererImpl() override; |
59 | 59 |
60 // VideoRenderer implementation. | 60 // VideoRenderer implementation. |
61 void Initialize(DemuxerStream* stream, | 61 void Initialize(DemuxerStream* stream, |
62 const PipelineStatusCB& init_cb, | 62 const PipelineStatusCB& init_cb, |
63 const SetDecryptorReadyCB& set_decryptor_ready_cb, | 63 const SetDecryptorReadyCB& set_decryptor_ready_cb, |
64 const StatisticsCB& statistics_cb, | 64 const StatisticsCB& statistics_cb, |
65 const BufferingStateCB& buffering_state_cb, | 65 const BufferingStateCB& buffering_state_cb, |
66 const base::Closure& ended_cb, | 66 const base::Closure& ended_cb, |
67 const PipelineStatusCB& error_cb, | 67 const PipelineStatusCB& error_cb, |
68 const WallClockTimeCB& wall_clock_time_cb, | 68 const TimeSource::WallClockTimeCB& wall_clock_time_cb, |
69 const base::Closure& waiting_for_decryption_key_cb) override; | 69 const base::Closure& waiting_for_decryption_key_cb) override; |
70 void Flush(const base::Closure& callback) override; | 70 void Flush(const base::Closure& callback) override; |
71 void StartPlayingFrom(base::TimeDelta timestamp) override; | 71 void StartPlayingFrom(base::TimeDelta timestamp) override; |
72 void OnTimeStateChanged(bool time_progressing) override; | 72 void OnTimeStateChanged(bool time_progressing) override; |
73 | 73 |
74 // PlatformThread::Delegate implementation. | 74 // PlatformThread::Delegate implementation. |
75 void ThreadMain() override; | 75 void ThreadMain() override; |
76 | 76 |
77 void SetTickClockForTesting(scoped_ptr<base::TickClock> tick_clock); | 77 void SetTickClockForTesting(scoped_ptr<base::TickClock> tick_clock); |
78 | 78 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 225 |
226 // Playback operation callbacks. | 226 // Playback operation callbacks. |
227 base::Closure flush_cb_; | 227 base::Closure flush_cb_; |
228 | 228 |
229 // Event callbacks. | 229 // Event callbacks. |
230 PipelineStatusCB init_cb_; | 230 PipelineStatusCB init_cb_; |
231 StatisticsCB statistics_cb_; | 231 StatisticsCB statistics_cb_; |
232 BufferingStateCB buffering_state_cb_; | 232 BufferingStateCB buffering_state_cb_; |
233 base::Closure ended_cb_; | 233 base::Closure ended_cb_; |
234 PipelineStatusCB error_cb_; | 234 PipelineStatusCB error_cb_; |
235 WallClockTimeCB wall_clock_time_cb_; | 235 TimeSource::WallClockTimeCB wall_clock_time_cb_; |
236 | 236 |
237 base::TimeDelta start_timestamp_; | 237 base::TimeDelta start_timestamp_; |
238 | 238 |
239 // Embedder callback for notifying a new frame is available for painting. | 239 // Embedder callback for notifying a new frame is available for painting. |
240 PaintCB paint_cb_; | 240 PaintCB paint_cb_; |
241 | 241 |
242 // The wallclock times of the last frame removed from the |ready_frames_| | 242 // The wallclock times of the last frame removed from the |ready_frames_| |
243 // queue, either for calling |paint_cb_| or for dropping. Set to null during | 243 // queue, either for calling |paint_cb_| or for dropping. Set to null during |
244 // flushing. | 244 // flushing. |
245 base::TimeTicks last_media_time_; | 245 base::TimeTicks last_media_time_; |
(...skipping 30 matching lines...) Expand all Loading... |
276 | 276 |
277 // NOTE: Weak pointers must be invalidated before all other member variables. | 277 // NOTE: Weak pointers must be invalidated before all other member variables. |
278 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; | 278 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; |
279 | 279 |
280 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); | 280 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); |
281 }; | 281 }; |
282 | 282 |
283 } // namespace media | 283 } // namespace media |
284 | 284 |
285 #endif // MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ | 285 #endif // MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ |
OLD | NEW |