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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // ScopedSurfaceRequestManager, and returns the request's token. | 66 // ScopedSurfaceRequestManager, and returns the request's token. |
67 void InitiateScopedSurfaceRequest( | 67 void InitiateScopedSurfaceRequest( |
68 const ReceiveSurfaceRequestTokenCB& receive_request_token_cb); | 68 const ReceiveSurfaceRequestTokenCB& receive_request_token_cb); |
69 | 69 |
70 private: | 70 private: |
71 // mojom::RendererClient implementation, dispatched on the | 71 // mojom::RendererClient implementation, dispatched on the |
72 // |task_runner_|. | 72 // |task_runner_|. |
73 void OnTimeUpdate(base::TimeDelta time, | 73 void OnTimeUpdate(base::TimeDelta time, |
74 base::TimeDelta max_time, | 74 base::TimeDelta max_time, |
75 base::TimeTicks capture_time) override; | 75 base::TimeTicks capture_time) override; |
76 void OnBufferingStateChange(mojom::BufferingState state) override; | 76 void OnBufferingStateChange(BufferingState state) override; |
77 void OnEnded() override; | 77 void OnEnded() override; |
78 void OnError() override; | 78 void OnError() override; |
79 void OnVideoNaturalSizeChange(const gfx::Size& size) override; | 79 void OnVideoNaturalSizeChange(const gfx::Size& size) override; |
80 void OnVideoOpacityChange(bool opaque) override; | 80 void OnVideoOpacityChange(bool opaque) override; |
81 void OnWaitingForDecryptionKey() override; | 81 void OnWaitingForDecryptionKey() override; |
82 void OnStatisticsUpdate(const PipelineStatistics& stats) override; | 82 void OnStatisticsUpdate(const PipelineStatistics& stats) override; |
83 void OnDurationChange(base::TimeDelta duration) override; | 83 void OnDurationChange(base::TimeDelta duration) override; |
84 | 84 |
85 // Binds |remote_renderer_| to the mojo message pipe. Can be called multiple | 85 // Binds |remote_renderer_| to the mojo message pipe. Can be called multiple |
86 // times. If an error occurs during connection, OnConnectionError will be | 86 // times. If an error occurs during connection, OnConnectionError will be |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 mutable base::Lock lock_; | 157 mutable base::Lock lock_; |
158 base::DefaultTickClock media_clock_; | 158 base::DefaultTickClock media_clock_; |
159 media::TimeDeltaInterpolator media_time_interpolator_; | 159 media::TimeDeltaInterpolator media_time_interpolator_; |
160 | 160 |
161 DISALLOW_COPY_AND_ASSIGN(MojoRenderer); | 161 DISALLOW_COPY_AND_ASSIGN(MojoRenderer); |
162 }; | 162 }; |
163 | 163 |
164 } // namespace media | 164 } // namespace media |
165 | 165 |
166 #endif // MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ | 166 #endif // MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ |
OLD | NEW |