| 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_SERVICES_MOJO_RENDERER_IMPL_H_ | 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_ |
| 6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_ | 6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 ~MojoRendererImpl() override; | 42 ~MojoRendererImpl() override; |
| 43 | 43 |
| 44 // Renderer implementation. | 44 // Renderer implementation. |
| 45 void Initialize(DemuxerStreamProvider* demuxer_stream_provider, | 45 void Initialize(DemuxerStreamProvider* demuxer_stream_provider, |
| 46 media::RendererClient* client, | 46 media::RendererClient* client, |
| 47 const PipelineStatusCB& init_cb) override; | 47 const PipelineStatusCB& init_cb) override; |
| 48 void SetCdm(CdmContext* cdm_context, | 48 void SetCdm(CdmContext* cdm_context, |
| 49 const CdmAttachedCB& cdm_attached_cb) override; | 49 const CdmAttachedCB& cdm_attached_cb) override; |
| 50 void Flush(const base::Closure& flush_cb) override; | 50 void Flush(const base::Closure& flush_cb) override; |
| 51 void StartPlayingFrom(base::TimeDelta time) override; | 51 void StartPlayingFrom(base::TimeDelta time) override; |
| 52 void RestartStreamPlayback(DemuxerStream* stream, |
| 53 base::TimeDelta time) override; |
| 52 void SetPlaybackRate(double playback_rate) override; | 54 void SetPlaybackRate(double playback_rate) override; |
| 53 void SetVolume(float volume) override; | 55 void SetVolume(float volume) override; |
| 54 base::TimeDelta GetMediaTime() override; | 56 base::TimeDelta GetMediaTime() override; |
| 55 bool HasAudio() override; | 57 bool HasAudio() override; |
| 56 bool HasVideo() override; | 58 bool HasVideo() override; |
| 57 | 59 |
| 58 private: | 60 private: |
| 59 // mojom::RendererClient implementation, dispatched on the | 61 // mojom::RendererClient implementation, dispatched on the |
| 60 // |task_runner_|. | 62 // |task_runner_|. |
| 61 void OnTimeUpdate(int64_t time_usec, int64_t max_time_usec) override; | 63 void OnTimeUpdate(int64_t time_usec, int64_t max_time_usec) override; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // Lock used to serialize access for |time_|. | 110 // Lock used to serialize access for |time_|. |
| 109 mutable base::Lock lock_; | 111 mutable base::Lock lock_; |
| 110 base::TimeDelta time_; | 112 base::TimeDelta time_; |
| 111 | 113 |
| 112 DISALLOW_COPY_AND_ASSIGN(MojoRendererImpl); | 114 DISALLOW_COPY_AND_ASSIGN(MojoRendererImpl); |
| 113 }; | 115 }; |
| 114 | 116 |
| 115 } // namespace media | 117 } // namespace media |
| 116 | 118 |
| 117 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_ | 119 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_ |
| OLD | NEW |