Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1325)

Unified Diff: cc/layers/video_frame_provider_client_impl.cc

Issue 1053113002: Prime the landing pad for the new video rendering pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cast. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/video_frame_provider_client_impl.h ('k') | cc/layers/video_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/video_frame_provider_client_impl.cc
diff --git a/cc/layers/video_frame_provider_client_impl.cc b/cc/layers/video_frame_provider_client_impl.cc
index 68e10dc58edfbffaa3d53cf4466a2a675aad305d..339d4fcf847ff367b63daec742811b10011ae0ef 100644
--- a/cc/layers/video_frame_provider_client_impl.cc
+++ b/cc/layers/video_frame_provider_client_impl.cc
@@ -78,11 +78,10 @@ VideoFrameProviderClientImpl::AcquireLockAndCurrentFrame() {
return provider_->GetCurrentFrame();
}
-void VideoFrameProviderClientImpl::PutCurrentFrame(
- const scoped_refptr<media::VideoFrame>& frame) {
+void VideoFrameProviderClientImpl::PutCurrentFrame() {
DCHECK(thread_checker_.CalledOnValidThread());
provider_lock_.AssertAcquired();
- provider_->PutCurrentFrame(frame);
+ provider_->PutCurrentFrame();
}
void VideoFrameProviderClientImpl::ReleaseLock() {
@@ -104,6 +103,16 @@ void VideoFrameProviderClientImpl::StopUsingProvider() {
provider_ = nullptr;
}
+void VideoFrameProviderClientImpl::StartRendering() {
+ // TODO(dalecurtis, sunnyps): Hook this method up to control when to start
+ // observing vsync intervals. http://crbug.com/336733
+}
+
+void VideoFrameProviderClientImpl::StopRendering() {
+ // TODO(dalecurtis, sunnyps): Hook this method up to control when to stop
+ // observing vsync intervals. http://crbug.com/336733
+}
+
void VideoFrameProviderClientImpl::DidReceiveFrame() {
TRACE_EVENT1("cc",
"VideoFrameProviderClientImpl::DidReceiveFrame",
« no previous file with comments | « cc/layers/video_frame_provider_client_impl.h ('k') | cc/layers/video_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698