| 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 "media/blink/webmediaplayer_cast_android.h" | 5 #include "media/blink/webmediaplayer_cast_android.h" |
| 6 | 6 |
| 7 #include "gpu/GLES2/gl2extchromium.h" | 7 #include "gpu/GLES2/gl2extchromium.h" |
| 8 #include "gpu/blink/webgraphicscontext3d_impl.h" | 8 #include "gpu/blink/webgraphicscontext3d_impl.h" |
| 9 #include "gpu/command_buffer/client/gles2_interface.h" | 9 #include "gpu/command_buffer/client/gles2_interface.h" |
| 10 #include "gpu/command_buffer/common/sync_token.h" | 10 #include "gpu/command_buffer/common/sync_token.h" |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 214 |
| 215 void WebMediaPlayerCast::OnSeekRequest(const base::TimeDelta& time_to_seek) { | 215 void WebMediaPlayerCast::OnSeekRequest(const base::TimeDelta& time_to_seek) { |
| 216 DVLOG(1) << __FUNCTION__; | 216 DVLOG(1) << __FUNCTION__; |
| 217 client_->requestSeek(time_to_seek.InSecondsF()); | 217 client_->requestSeek(time_to_seek.InSecondsF()); |
| 218 } | 218 } |
| 219 | 219 |
| 220 void WebMediaPlayerCast::OnSeekComplete(const base::TimeDelta& current_time) { | 220 void WebMediaPlayerCast::OnSeekComplete(const base::TimeDelta& current_time) { |
| 221 DVLOG(1) << __FUNCTION__; | 221 DVLOG(1) << __FUNCTION__; |
| 222 remote_time_at_ = base::TimeTicks::Now(); | 222 remote_time_at_ = base::TimeTicks::Now(); |
| 223 remote_time_ = current_time; | 223 remote_time_ = current_time; |
| 224 webmediaplayer_->OnPipelineSeeked(true, PIPELINE_OK); | 224 webmediaplayer_->OnPipelineSeeked(true); |
| 225 } | 225 } |
| 226 | 226 |
| 227 void WebMediaPlayerCast::OnMediaError(int error_type) { | 227 void WebMediaPlayerCast::OnMediaError(int error_type) { |
| 228 DVLOG(1) << __FUNCTION__; | 228 DVLOG(1) << __FUNCTION__; |
| 229 } | 229 } |
| 230 | 230 |
| 231 void WebMediaPlayerCast::OnVideoSizeChanged(int width, int height) { | 231 void WebMediaPlayerCast::OnVideoSizeChanged(int width, int height) { |
| 232 DVLOG(1) << __FUNCTION__; | 232 DVLOG(1) << __FUNCTION__; |
| 233 } | 233 } |
| 234 | 234 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 | 370 |
| 371 if (!canvas_size.width()) | 371 if (!canvas_size.width()) |
| 372 return nullptr; | 372 return nullptr; |
| 373 | 373 |
| 374 return MakeTextFrameForCast(remote_playback_message_, canvas_size, | 374 return MakeTextFrameForCast(remote_playback_message_, canvas_size, |
| 375 webmediaplayer_->naturalSize(), | 375 webmediaplayer_->naturalSize(), |
| 376 base::Bind(&GLCBShim, context_3d_cb_)); | 376 base::Bind(&GLCBShim, context_3d_cb_)); |
| 377 } | 377 } |
| 378 | 378 |
| 379 } // namespace media | 379 } // namespace media |
| OLD | NEW |