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

Unified Diff: cc/trees/thread_proxy.cc

Issue 15139007: Ensure LayerTreeHostImpl's current frame time is updated every frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 7 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
Index: cc/trees/thread_proxy.cc
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index aff281fb3c1993fb2fa438927ee58e131ed1dd55..c34d644740ca24ee807284e3d6b2d4271d50a776 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -976,8 +976,6 @@ ThreadProxy::ScheduledActionDrawAndSwapInternal(bool forced_draw) {
if (draw_frame)
CheckOutputSurfaceStatusOnImplThread();
- layer_tree_host_impl_->BeginNextFrame();
-
return result;
}
@@ -1034,6 +1032,7 @@ void ThreadProxy::DidAnticipatedDrawTimeChange(base::TimeTicks time) {
if (current_resource_update_controller_on_impl_thread_)
current_resource_update_controller_on_impl_thread_
->PerformMoreUpdates(time);
+ layer_tree_host_impl_->BeginNextFrame();
brianderson 2013/05/16 18:16:00 I know this is tangential to what you are changing
danakj 2013/05/16 18:18:09 It's not quite update either, it's setting things
danakj 2013/05/16 18:24:07 Or ResetCurrentFrameTimeForNextFrame(), to say thi
ajuma 2013/05/16 18:33:33 I like ResetCurrentFrameTimeForNextFrame().
ajuma 2013/05/16 19:50:01 Renamed to ResetCurrentFrameTimeForNextFrame().
}
void ThreadProxy::ReadyToFinalizeTextureUpdates() {
« cc/trees/layer_tree_host_unittest.cc ('K') | « cc/trees/layer_tree_host_unittest_scroll.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698