| 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_MOJO_CLIENTS_MOJO_RENDERER_H_ | 5 #ifndef MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ |
| 6 #define MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ | 6 #define MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 void Initialize(DemuxerStreamProvider* demuxer_stream_provider, | 49 void Initialize(DemuxerStreamProvider* demuxer_stream_provider, |
| 50 media::RendererClient* client, | 50 media::RendererClient* client, |
| 51 const PipelineStatusCB& init_cb) override; | 51 const PipelineStatusCB& init_cb) override; |
| 52 void SetCdm(CdmContext* cdm_context, | 52 void SetCdm(CdmContext* cdm_context, |
| 53 const CdmAttachedCB& cdm_attached_cb) override; | 53 const CdmAttachedCB& cdm_attached_cb) override; |
| 54 void Flush(const base::Closure& flush_cb) override; | 54 void Flush(const base::Closure& flush_cb) override; |
| 55 void StartPlayingFrom(base::TimeDelta time) override; | 55 void StartPlayingFrom(base::TimeDelta time) override; |
| 56 void SetPlaybackRate(double playback_rate) override; | 56 void SetPlaybackRate(double playback_rate) override; |
| 57 void SetVolume(float volume) override; | 57 void SetVolume(float volume) override; |
| 58 base::TimeDelta GetMediaTime() override; | 58 base::TimeDelta GetMediaTime() override; |
| 59 bool HasAudio() override; | |
| 60 bool HasVideo() override; | |
| 61 | 59 |
| 62 using ReceiveSurfaceRequestTokenCB = | 60 using ReceiveSurfaceRequestTokenCB = |
| 63 base::Callback<void(const base::UnguessableToken&)>; | 61 base::Callback<void(const base::UnguessableToken&)>; |
| 64 | 62 |
| 65 // Asks |remote_renderer_| to register a request in the browser's | 63 // Asks |remote_renderer_| to register a request in the browser's |
| 66 // ScopedSurfaceRequestManager, and returns the request's token. | 64 // ScopedSurfaceRequestManager, and returns the request's token. |
| 67 void InitiateScopedSurfaceRequest( | 65 void InitiateScopedSurfaceRequest( |
| 68 const ReceiveSurfaceRequestTokenCB& receive_request_token_cb); | 66 const ReceiveSurfaceRequestTokenCB& receive_request_token_cb); |
| 69 | 67 |
| 70 private: | 68 private: |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 mutable base::Lock lock_; | 155 mutable base::Lock lock_; |
| 158 base::DefaultTickClock media_clock_; | 156 base::DefaultTickClock media_clock_; |
| 159 media::TimeDeltaInterpolator media_time_interpolator_; | 157 media::TimeDeltaInterpolator media_time_interpolator_; |
| 160 | 158 |
| 161 DISALLOW_COPY_AND_ASSIGN(MojoRenderer); | 159 DISALLOW_COPY_AND_ASSIGN(MojoRenderer); |
| 162 }; | 160 }; |
| 163 | 161 |
| 164 } // namespace media | 162 } // namespace media |
| 165 | 163 |
| 166 #endif // MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ | 164 #endif // MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ |
| OLD | NEW |