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

Unified Diff: cc/trees/single_thread_proxy.cc

Issue 184023002: Change LayerHostImpl to use frame time from BeginFrameArgs rather than ::Now() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing background ticking, trying to fix tests, lots of other small updates. Created 6 years, 9 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
Index: cc/trees/single_thread_proxy.cc
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
index ece908bf4ba38732af71aadd89a4a258fbff5540..ddcb0e301c07191a629d0b6a80c165c43ce19c8d 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -532,6 +532,7 @@ bool SingleThreadProxy::DoComposite(
return false;
}
+ layer_tree_host_impl_->OverrideCurrentFrameTime(frame_begin_time);
danakj 2014/03/11 18:32:36 This is really late, we'll have generated a frame
layer_tree_host_impl_->Animate(
layer_tree_host_impl_->CurrentFrameTimeTicks());
UpdateBackgroundAnimateTicking();
@@ -545,8 +546,6 @@ bool SingleThreadProxy::DoComposite(
bool start_ready_animations = true;
layer_tree_host_impl_->UpdateAnimationState(start_ready_animations);
-
- layer_tree_host_impl_->ResetCurrentFrameTimeForNextFrame();
}
if (lost_output_surface) {

Powered by Google App Engine
This is Rietveld 408576698