| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/media/webmediaplayer_ms.h" | 5 #include "webkit/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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 } | 263 } |
| 264 | 264 |
| 265 void WebMediaPlayerMS::setSize(const WebSize& size) { | 265 void WebMediaPlayerMS::setSize(const WebSize& size) { |
| 266 DCHECK(thread_checker_.CalledOnValidThread()); | 266 DCHECK(thread_checker_.CalledOnValidThread()); |
| 267 // Don't need to do anything as we use the dimensions passed in via paint(). | 267 // Don't need to do anything as we use the dimensions passed in via paint(). |
| 268 } | 268 } |
| 269 | 269 |
| 270 void WebMediaPlayerMS::paint(WebCanvas* canvas, | 270 void WebMediaPlayerMS::paint(WebCanvas* canvas, |
| 271 const WebRect& rect, | 271 const WebRect& rect, |
| 272 uint8_t alpha) { | 272 uint8_t alpha) { |
| 273 DVLOG(1) << "WebMediaPlayerMS::paint"; | 273 DVLOG(3) << "WebMediaPlayerMS::paint"; |
| 274 DCHECK(thread_checker_.CalledOnValidThread()); | 274 DCHECK(thread_checker_.CalledOnValidThread()); |
| 275 | 275 |
| 276 video_renderer_.Paint(current_frame_, canvas, rect, alpha); | 276 video_renderer_.Paint(current_frame_, canvas, rect, alpha); |
| 277 } | 277 } |
| 278 | 278 |
| 279 bool WebMediaPlayerMS::hasSingleSecurityOrigin() const { | 279 bool WebMediaPlayerMS::hasSingleSecurityOrigin() const { |
| 280 DCHECK(thread_checker_.CalledOnValidThread()); | 280 DCHECK(thread_checker_.CalledOnValidThread()); |
| 281 return true; | 281 return true; |
| 282 } | 282 } |
| 283 | 283 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 GetClient()->readyStateChanged(); | 397 GetClient()->readyStateChanged(); |
| 398 } | 398 } |
| 399 | 399 |
| 400 WebKit::WebMediaPlayerClient* WebMediaPlayerMS::GetClient() { | 400 WebKit::WebMediaPlayerClient* WebMediaPlayerMS::GetClient() { |
| 401 DCHECK(thread_checker_.CalledOnValidThread()); | 401 DCHECK(thread_checker_.CalledOnValidThread()); |
| 402 DCHECK(client_); | 402 DCHECK(client_); |
| 403 return client_; | 403 return client_; |
| 404 } | 404 } |
| 405 | 405 |
| 406 } // namespace webkit_media | 406 } // namespace webkit_media |
| OLD | NEW |