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

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 310873002: Reschedule COMPOSITE_EVENTUALLY instead of COMPOSITE_IMMEDIATELY if we miss a browser frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add more comments Created 6 years, 7 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: content/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index 68f6a470e54b0d43749a555c2a60b59171c6220e..66f9f0684c599726e25ed6f6756e6b7014ab60ce 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -682,9 +682,11 @@ void CompositorImpl::OnVSync(base::TimeTicks frame_time,
last_vsync_ = frame_time;
if (WillCompositeThisFrame()) {
- // We somehow missed the last vsync interval, so reschedule immediately.
+ // We somehow missed the last vsync interval, so reschedule for deadline.
+ // We cannot schedule immediately, or will get us out-of-phase with new
+ // renderer frames.
CancelComposite();
- composite_on_vsync_trigger_ = COMPOSITE_IMMEDIATELY;
+ composite_on_vsync_trigger_ = COMPOSITE_EVENTUALLY;
} else {
current_composite_task_.reset();
}
« 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