| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/webmediaplayer_ms.h" | 5 #include "content/renderer/media/webmediaplayer_ms.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 double WebMediaPlayerMS::maxTimeSeekable() const { | 309 double WebMediaPlayerMS::maxTimeSeekable() const { |
| 310 DCHECK(thread_checker_.CalledOnValidThread()); | 310 DCHECK(thread_checker_.CalledOnValidThread()); |
| 311 return 0.0; | 311 return 0.0; |
| 312 } | 312 } |
| 313 | 313 |
| 314 bool WebMediaPlayerMS::didLoadingProgress() const { | 314 bool WebMediaPlayerMS::didLoadingProgress() const { |
| 315 DCHECK(thread_checker_.CalledOnValidThread()); | 315 DCHECK(thread_checker_.CalledOnValidThread()); |
| 316 return true; | 316 return true; |
| 317 } | 317 } |
| 318 | 318 |
| 319 bool WebMediaPlayerMS::didLoadingProgress() { |
| 320 DCHECK(thread_checker_.CalledOnValidThread()); |
| 321 return true; |
| 322 } |
| 323 |
| 319 void WebMediaPlayerMS::paint(WebCanvas* canvas, | 324 void WebMediaPlayerMS::paint(WebCanvas* canvas, |
| 320 const WebRect& rect, | 325 const WebRect& rect, |
| 321 unsigned char alpha) { | 326 unsigned char alpha) { |
| 322 DVLOG(3) << "WebMediaPlayerMS::paint"; | 327 DVLOG(3) << "WebMediaPlayerMS::paint"; |
| 323 DCHECK(thread_checker_.CalledOnValidThread()); | 328 DCHECK(thread_checker_.CalledOnValidThread()); |
| 324 | 329 |
| 325 gfx::RectF dest_rect(rect.x, rect.y, rect.width, rect.height); | 330 gfx::RectF dest_rect(rect.x, rect.y, rect.width, rect.height); |
| 326 video_renderer_.Paint(current_frame_.get(), canvas, dest_rect, alpha); | 331 video_renderer_.Paint(current_frame_.get(), canvas, dest_rect, alpha); |
| 327 | 332 |
| 328 { | 333 { |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 GetClient()->readyStateChanged(); | 479 GetClient()->readyStateChanged(); |
| 475 } | 480 } |
| 476 | 481 |
| 477 blink::WebMediaPlayerClient* WebMediaPlayerMS::GetClient() { | 482 blink::WebMediaPlayerClient* WebMediaPlayerMS::GetClient() { |
| 478 DCHECK(thread_checker_.CalledOnValidThread()); | 483 DCHECK(thread_checker_.CalledOnValidThread()); |
| 479 DCHECK(client_); | 484 DCHECK(client_); |
| 480 return client_; | 485 return client_; |
| 481 } | 486 } |
| 482 | 487 |
| 483 } // namespace content | 488 } // namespace content |
| OLD | NEW |