OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_RENDERER_IMPL_H_ | 5 #ifndef MEDIA_RENDERERS_RENDERER_IMPL_H_ |
6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_ | 6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 RendererClient* client, | 53 RendererClient* client, |
54 const PipelineStatusCB& init_cb) final; | 54 const PipelineStatusCB& init_cb) final; |
55 void SetCdm(CdmContext* cdm_context, | 55 void SetCdm(CdmContext* cdm_context, |
56 const CdmAttachedCB& cdm_attached_cb) final; | 56 const CdmAttachedCB& cdm_attached_cb) final; |
57 void Flush(const base::Closure& flush_cb) final; | 57 void Flush(const base::Closure& flush_cb) final; |
58 void StartPlayingFrom(base::TimeDelta time) final; | 58 void StartPlayingFrom(base::TimeDelta time) final; |
59 void SetPlaybackRate(double playback_rate) final; | 59 void SetPlaybackRate(double playback_rate) final; |
60 void SetVolume(float volume) final; | 60 void SetVolume(float volume) final; |
61 base::TimeDelta GetMediaTime() final; | 61 base::TimeDelta GetMediaTime() final; |
62 | 62 |
63 void RestartStreamPlayback(DemuxerStream* stream, | 63 void OnStreamStatusChanged(DemuxerStream* stream, |
64 bool enabled, | 64 bool enabled, |
65 base::TimeDelta time); | 65 base::TimeDelta time); |
66 | 66 |
67 // Helper functions for testing purposes. Must be called before Initialize(). | 67 // Helper functions for testing purposes. Must be called before Initialize(). |
68 void DisableUnderflowForTesting(); | 68 void DisableUnderflowForTesting(); |
69 void EnableClocklessVideoPlaybackForTesting(); | 69 void EnableClocklessVideoPlaybackForTesting(); |
70 void set_time_source_for_testing(TimeSource* time_source) { | 70 void set_time_source_for_testing(TimeSource* time_source) { |
71 time_source_ = time_source; | 71 time_source_ = time_source; |
72 } | 72 } |
73 void set_video_underflow_threshold_for_testing(base::TimeDelta threshold) { | 73 void set_video_underflow_threshold_for_testing(base::TimeDelta threshold) { |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 200 |
201 base::WeakPtr<RendererImpl> weak_this_; | 201 base::WeakPtr<RendererImpl> weak_this_; |
202 base::WeakPtrFactory<RendererImpl> weak_factory_; | 202 base::WeakPtrFactory<RendererImpl> weak_factory_; |
203 | 203 |
204 DISALLOW_COPY_AND_ASSIGN(RendererImpl); | 204 DISALLOW_COPY_AND_ASSIGN(RendererImpl); |
205 }; | 205 }; |
206 | 206 |
207 } // namespace media | 207 } // namespace media |
208 | 208 |
209 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ | 209 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ |
OLD | NEW |