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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 VideoRendererImpl( | 48 VideoRendererImpl( |
49 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 49 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
50 ScopedVector<VideoDecoder> decoders, | 50 ScopedVector<VideoDecoder> decoders, |
51 const SetDecryptorReadyCB& set_decryptor_ready_cb, | 51 const SetDecryptorReadyCB& set_decryptor_ready_cb, |
52 bool drop_frames, | 52 bool drop_frames, |
53 const scoped_refptr<MediaLog>& media_log); | 53 const scoped_refptr<MediaLog>& media_log); |
54 ~VideoRendererImpl() override; | 54 ~VideoRendererImpl() override; |
55 | 55 |
56 // VideoRenderer implementation. | 56 // VideoRenderer implementation. |
57 void Initialize(DemuxerStream* stream, | 57 void Initialize(DemuxerStream* stream, |
58 bool low_delay, | |
59 const PipelineStatusCB& init_cb, | 58 const PipelineStatusCB& init_cb, |
60 const StatisticsCB& statistics_cb, | 59 const StatisticsCB& statistics_cb, |
61 const BufferingStateCB& buffering_state_cb, | 60 const BufferingStateCB& buffering_state_cb, |
62 const PaintCB& paint_cb, | 61 const PaintCB& paint_cb, |
63 const base::Closure& ended_cb, | 62 const base::Closure& ended_cb, |
64 const PipelineStatusCB& error_cb, | 63 const PipelineStatusCB& error_cb, |
65 const TimeDeltaCB& get_time_cb) override; | 64 const TimeDeltaCB& get_time_cb) override; |
66 void Flush(const base::Closure& callback) override; | 65 void Flush(const base::Closure& callback) override; |
67 void StartPlayingFrom(base::TimeDelta timestamp) override; | 66 void StartPlayingFrom(base::TimeDelta timestamp) override; |
68 | 67 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 204 |
206 // NOTE: Weak pointers must be invalidated before all other member variables. | 205 // NOTE: Weak pointers must be invalidated before all other member variables. |
207 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; | 206 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; |
208 | 207 |
209 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); | 208 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); |
210 }; | 209 }; |
211 | 210 |
212 } // namespace media | 211 } // namespace media |
213 | 212 |
214 #endif // MEDIA_FILTERS_VIDEO_RENDERER_IMPL_H_ | 213 #endif // MEDIA_FILTERS_VIDEO_RENDERER_IMPL_H_ |
OLD | NEW |