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_FILTERS_VIDEO_RENDERER_IMPL_H_ | 5 #ifndef MEDIA_FILTERS_VIDEO_RENDERER_IMPL_H_ |
6 #define MEDIA_FILTERS_VIDEO_RENDERER_IMPL_H_ | 6 #define MEDIA_FILTERS_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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 53 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
54 ScopedVector<VideoDecoder> decoders, | 54 ScopedVector<VideoDecoder> decoders, |
55 const SetDecryptorReadyCB& set_decryptor_ready_cb, | 55 const SetDecryptorReadyCB& set_decryptor_ready_cb, |
56 const PaintCB& paint_cb, | 56 const PaintCB& paint_cb, |
57 bool drop_frames, | 57 bool drop_frames, |
58 const scoped_refptr<MediaLog>& media_log); | 58 const scoped_refptr<MediaLog>& media_log); |
59 ~VideoRendererImpl() override; | 59 ~VideoRendererImpl() override; |
60 | 60 |
61 // VideoRenderer implementation. | 61 // VideoRenderer implementation. |
62 void Initialize(DemuxerStream* stream, | 62 void Initialize(DemuxerStream* stream, |
63 bool low_delay, | |
64 const PipelineStatusCB& init_cb, | 63 const PipelineStatusCB& init_cb, |
65 const StatisticsCB& statistics_cb, | 64 const StatisticsCB& statistics_cb, |
66 const BufferingStateCB& buffering_state_cb, | 65 const BufferingStateCB& buffering_state_cb, |
67 const base::Closure& ended_cb, | 66 const base::Closure& ended_cb, |
68 const PipelineStatusCB& error_cb, | 67 const PipelineStatusCB& error_cb, |
69 const TimeDeltaCB& get_time_cb) override; | 68 const TimeDeltaCB& get_time_cb) override; |
70 void Flush(const base::Closure& callback) override; | 69 void Flush(const base::Closure& callback) override; |
71 void StartPlayingFrom(base::TimeDelta timestamp) override; | 70 void StartPlayingFrom(base::TimeDelta timestamp) override; |
72 | 71 |
73 // PlatformThread::Delegate implementation. | 72 // PlatformThread::Delegate implementation. |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 208 |
210 // NOTE: Weak pointers must be invalidated before all other member variables. | 209 // NOTE: Weak pointers must be invalidated before all other member variables. |
211 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; | 210 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; |
212 | 211 |
213 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); | 212 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); |
214 }; | 213 }; |
215 | 214 |
216 } // namespace media | 215 } // namespace media |
217 | 216 |
218 #endif // MEDIA_FILTERS_VIDEO_RENDERER_IMPL_H_ | 217 #endif // MEDIA_FILTERS_VIDEO_RENDERER_IMPL_H_ |
OLD | NEW |