OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "content/renderer/media/android/media_player_renderer_client.h" | 5 #include "content/renderer/media/android/media_player_renderer_client.h" |
6 | 6 |
7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 void MediaPlayerRendererClient::OnVideoNaturalSizeChange( | 144 void MediaPlayerRendererClient::OnVideoNaturalSizeChange( |
145 const gfx::Size& size) { | 145 const gfx::Size& size) { |
146 stream_texture_wrapper_->UpdateTextureSize(size); | 146 stream_texture_wrapper_->UpdateTextureSize(size); |
147 client_->OnVideoNaturalSizeChange(size); | 147 client_->OnVideoNaturalSizeChange(size); |
148 } | 148 } |
149 | 149 |
150 void MediaPlayerRendererClient::OnVideoOpacityChange(bool opaque) { | 150 void MediaPlayerRendererClient::OnVideoOpacityChange(bool opaque) { |
151 client_->OnVideoOpacityChange(opaque); | 151 client_->OnVideoOpacityChange(opaque); |
152 } | 152 } |
153 | 153 |
| 154 void MediaPlayerRendererClient::OnDurationChange(base::TimeDelta duration) { |
| 155 client_->OnDurationChange(duration); |
| 156 } |
| 157 |
154 } // namespace content | 158 } // namespace content |
OLD | NEW |