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

Unified Diff: media/blink/video_frame_compositor.cc

Issue 1299523002: Call VideoFrameProviderImpl::DidReceiveFrame when background render completes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/video_frame_compositor.cc
diff --git a/media/blink/video_frame_compositor.cc b/media/blink/video_frame_compositor.cc
index 3cdf980ba0aa6136f9729e8925cc4518c665d9f7..3e3d62bc21eb227717c475f722d9f786f9dab096 100644
--- a/media/blink/video_frame_compositor.cc
+++ b/media/blink/video_frame_compositor.cc
@@ -219,7 +219,9 @@ void VideoFrameCompositor::BackgroundRender() {
DCHECK(compositor_task_runner_->BelongsToCurrentThread());
const base::TimeTicks now = tick_clock_->NowTicks();
last_background_render_ = now;
- CallRender(now, now + last_interval_, true);
+ bool new_frame = CallRender(now, now + last_interval_, true);
+ if (new_frame && client_)
+ client_->DidReceiveFrame();
DaleCurtis 2015/08/14 21:50:03 Hmm, this means we're calling SetNeedsRedraw() eve
DaleCurtis 2015/08/14 21:51:41 Actually this can happen as frequently as every 4m
}
bool VideoFrameCompositor::CallRender(base::TimeTicks deadline_min,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698