OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROMECAST_MEDIA_BASE_SWITCHING_MEDIA_RENDERER_H_ | 5 #ifndef CHROMECAST_MEDIA_BASE_SWITCHING_MEDIA_RENDERER_H_ |
6 #define CHROMECAST_MEDIA_BASE_SWITCHING_MEDIA_RENDERER_H_ | 6 #define CHROMECAST_MEDIA_BASE_SWITCHING_MEDIA_RENDERER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "media/base/renderer.h" | 10 #include "media/base/renderer.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 const ::media::StatisticsCB& statistics_cb, | 37 const ::media::StatisticsCB& statistics_cb, |
38 const ::media::BufferingStateCB& buffering_state_cb, | 38 const ::media::BufferingStateCB& buffering_state_cb, |
39 const ::media::Renderer::PaintCB& paint_cb, | 39 const ::media::Renderer::PaintCB& paint_cb, |
40 const base::Closure& ended_cb, | 40 const base::Closure& ended_cb, |
41 const ::media::PipelineStatusCB& error_cb, | 41 const ::media::PipelineStatusCB& error_cb, |
42 const base::Closure& waiting_for_decryption_key_cb) override; | 42 const base::Closure& waiting_for_decryption_key_cb) override; |
43 void SetCdm(::media::CdmContext* cdm_context, | 43 void SetCdm(::media::CdmContext* cdm_context, |
44 const ::media::CdmAttachedCB& cdm_attached_cb) override; | 44 const ::media::CdmAttachedCB& cdm_attached_cb) override; |
45 void Flush(const base::Closure& flush_cb) override; | 45 void Flush(const base::Closure& flush_cb) override; |
46 void StartPlayingFrom(base::TimeDelta time) override; | 46 void StartPlayingFrom(base::TimeDelta time) override; |
47 void SetPlaybackRate(float playback_rate) override; | 47 void SetPlaybackRate(double playback_rate) override; |
48 void SetVolume(float volume) override; | 48 void SetVolume(float volume) override; |
49 base::TimeDelta GetMediaTime() override; | 49 base::TimeDelta GetMediaTime() override; |
50 bool HasAudio() override; | 50 bool HasAudio() override; |
51 bool HasVideo() override; | 51 bool HasVideo() override; |
52 | 52 |
53 private: | 53 private: |
54 // Returns the pointer to the actual renderer being used | 54 // Returns the pointer to the actual renderer being used |
55 ::media::Renderer* GetRenderer() const; | 55 ::media::Renderer* GetRenderer() const; |
56 | 56 |
57 ::media::DemuxerStreamProvider* demuxer_stream_provider_; | 57 ::media::DemuxerStreamProvider* demuxer_stream_provider_; |
58 scoped_ptr<::media::Renderer> default_renderer_; | 58 scoped_ptr<::media::Renderer> default_renderer_; |
59 scoped_ptr<::media::Renderer> cma_renderer_; | 59 scoped_ptr<::media::Renderer> cma_renderer_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(SwitchingMediaRenderer); | 61 DISALLOW_COPY_AND_ASSIGN(SwitchingMediaRenderer); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace media | 64 } // namespace media |
65 } // namespace chromecast | 65 } // namespace chromecast |
66 | 66 |
67 #endif // CHROMECAST_MEDIA_BASE_SWITCHING_MEDIA_RENDERER_H_ | 67 #endif // CHROMECAST_MEDIA_BASE_SWITCHING_MEDIA_RENDERER_H_ |
OLD | NEW |