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_SERVICE_H_ | 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ |
6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ | 6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 }; | 63 }; |
64 | 64 |
65 // RendererClient implementation. | 65 // RendererClient implementation. |
66 void OnError(PipelineStatus status) final; | 66 void OnError(PipelineStatus status) final; |
67 void OnEnded() final; | 67 void OnEnded() final; |
68 void OnStatisticsUpdate(const PipelineStatistics& stats) final; | 68 void OnStatisticsUpdate(const PipelineStatistics& stats) final; |
69 void OnBufferingStateChange(BufferingState state) final; | 69 void OnBufferingStateChange(BufferingState state) final; |
70 void OnWaitingForDecryptionKey() final; | 70 void OnWaitingForDecryptionKey() final; |
71 void OnVideoNaturalSizeChange(const gfx::Size& size) final; | 71 void OnVideoNaturalSizeChange(const gfx::Size& size) final; |
72 void OnVideoOpacityChange(bool opaque) final; | 72 void OnVideoOpacityChange(bool opaque) final; |
| 73 void OnTimeUpdate(base::TimeDelta curr_time, |
| 74 base::TimeDelta max_time, |
| 75 base::TimeTicks capture_time) final; |
73 | 76 |
74 // Called when the DemuxerStreamProviderShim is ready to go (has a config, | 77 // Called when the DemuxerStreamProviderShim is ready to go (has a config, |
75 // pipe handle, etc) and can be handed off to a renderer for use. | 78 // pipe handle, etc) and can be handed off to a renderer for use. |
76 void OnStreamReady(const base::Callback<void(bool)>& callback); | 79 void OnStreamReady(const base::Callback<void(bool)>& callback); |
77 | 80 |
78 // Called when |audio_renderer_| initialization has completed. | 81 // Called when |audio_renderer_| initialization has completed. |
79 void OnRendererInitializeDone(const base::Callback<void(bool)>& callback, | 82 void OnRendererInitializeDone(const base::Callback<void(bool)>& callback, |
80 PipelineStatus status); | 83 PipelineStatus status); |
81 | 84 |
82 // Periodically polls the media time from the renderer and notifies the client | 85 // Periodically polls the media time from the renderer and notifies the client |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 121 |
119 base::WeakPtr<MojoRendererService> weak_this_; | 122 base::WeakPtr<MojoRendererService> weak_this_; |
120 base::WeakPtrFactory<MojoRendererService> weak_factory_; | 123 base::WeakPtrFactory<MojoRendererService> weak_factory_; |
121 | 124 |
122 DISALLOW_COPY_AND_ASSIGN(MojoRendererService); | 125 DISALLOW_COPY_AND_ASSIGN(MojoRendererService); |
123 }; | 126 }; |
124 | 127 |
125 } // namespace media | 128 } // namespace media |
126 | 129 |
127 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ | 130 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ |
OLD | NEW |