| 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 NOTIMPLEMENTED(); | 367 NOTIMPLEMENTED(); |
| 368 return 0; | 368 return 0; |
| 369 } | 369 } |
| 370 | 370 |
| 371 unsigned WebMediaPlayerMS::videoDecodedByteCount() const { | 371 unsigned WebMediaPlayerMS::videoDecodedByteCount() const { |
| 372 DCHECK(thread_checker_.CalledOnValidThread()); | 372 DCHECK(thread_checker_.CalledOnValidThread()); |
| 373 NOTIMPLEMENTED(); | 373 NOTIMPLEMENTED(); |
| 374 return 0; | 374 return 0; |
| 375 } | 375 } |
| 376 | 376 |
| 377 double WebMediaPlayerMS::totalFrameDelay() const { |
| 378 DCHECK(thread_checker_.CalledOnValidThread()); |
| 379 NOTIMPLEMENTED(); |
| 380 return 0.0; |
| 381 } |
| 382 |
| 377 void WebMediaPlayerMS::SetVideoFrameProviderClient( | 383 void WebMediaPlayerMS::SetVideoFrameProviderClient( |
| 378 cc::VideoFrameProvider::Client* client) { | 384 cc::VideoFrameProvider::Client* client) { |
| 379 // This is called from both the main renderer thread and the compositor | 385 // This is called from both the main renderer thread and the compositor |
| 380 // thread (when the main thread is blocked). | 386 // thread (when the main thread is blocked). |
| 381 if (video_frame_provider_client_) | 387 if (video_frame_provider_client_) |
| 382 video_frame_provider_client_->StopUsingProvider(); | 388 video_frame_provider_client_->StopUsingProvider(); |
| 383 video_frame_provider_client_ = client; | 389 video_frame_provider_client_ = client; |
| 384 } | 390 } |
| 385 | 391 |
| 386 scoped_refptr<media::VideoFrame> WebMediaPlayerMS::GetCurrentFrame() { | 392 scoped_refptr<media::VideoFrame> WebMediaPlayerMS::GetCurrentFrame() { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 GetClient()->readyStateChanged(); | 480 GetClient()->readyStateChanged(); |
| 475 } | 481 } |
| 476 | 482 |
| 477 blink::WebMediaPlayerClient* WebMediaPlayerMS::GetClient() { | 483 blink::WebMediaPlayerClient* WebMediaPlayerMS::GetClient() { |
| 478 DCHECK(thread_checker_.CalledOnValidThread()); | 484 DCHECK(thread_checker_.CalledOnValidThread()); |
| 479 DCHECK(client_); | 485 DCHECK(client_); |
| 480 return client_; | 486 return client_; |
| 481 } | 487 } |
| 482 | 488 |
| 483 } // namespace content | 489 } // namespace content |
| OLD | NEW |