| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 VideoRendererSink* sink, | 59 VideoRendererSink* sink, |
| 60 ScopedVector<VideoDecoder> decoders, | 60 ScopedVector<VideoDecoder> decoders, |
| 61 bool drop_frames, | 61 bool drop_frames, |
| 62 GpuVideoAcceleratorFactories* gpu_factories, | 62 GpuVideoAcceleratorFactories* gpu_factories, |
| 63 const scoped_refptr<MediaLog>& media_log); | 63 const scoped_refptr<MediaLog>& media_log); |
| 64 ~VideoRendererImpl() override; | 64 ~VideoRendererImpl() override; |
| 65 | 65 |
| 66 // VideoRenderer implementation. | 66 // VideoRenderer implementation. |
| 67 void Initialize(DemuxerStream* stream, | 67 void Initialize(DemuxerStream* stream, |
| 68 const PipelineStatusCB& init_cb, | 68 const PipelineStatusCB& init_cb, |
| 69 const SetCdmReadyCB& set_cdm_ready_cb, | 69 CdmContext* cdm_context, |
| 70 const StatisticsCB& statistics_cb, | 70 const StatisticsCB& statistics_cb, |
| 71 const BufferingStateCB& buffering_state_cb, | 71 const BufferingStateCB& buffering_state_cb, |
| 72 const base::Closure& ended_cb, | 72 const base::Closure& ended_cb, |
| 73 const PipelineStatusCB& error_cb, | 73 const PipelineStatusCB& error_cb, |
| 74 const TimeSource::WallClockTimeCB& wall_clock_time_cb, | 74 const TimeSource::WallClockTimeCB& wall_clock_time_cb, |
| 75 const base::Closure& waiting_for_decryption_key_cb) override; | 75 const base::Closure& waiting_for_decryption_key_cb) override; |
| 76 void Flush(const base::Closure& callback) override; | 76 void Flush(const base::Closure& callback) override; |
| 77 void StartPlayingFrom(base::TimeDelta timestamp) override; | 77 void StartPlayingFrom(base::TimeDelta timestamp) override; |
| 78 void OnTimeStateChanged(bool time_progressing) override; | 78 void OnTimeStateChanged(bool time_progressing) override; |
| 79 | 79 |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 270 |
| 271 // NOTE: Weak pointers must be invalidated before all other member variables. | 271 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 272 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; | 272 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; |
| 273 | 273 |
| 274 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); | 274 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); |
| 275 }; | 275 }; |
| 276 | 276 |
| 277 } // namespace media | 277 } // namespace media |
| 278 | 278 |
| 279 #endif // MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ | 279 #endif // MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ |
| OLD | NEW |