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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 461083002: Force a commit at the end of the top controls animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment cleanup Created 6 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 | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 2d7a9323edf74e7bceb7eab96100f2d8996b12f6..fe993fa07058d717ef5e5784b6b2dc844d9a4363 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -3034,8 +3034,11 @@ void LayerTreeHostImpl::AnimateTopControls(base::TimeTicks time) {
ScrollViewportBy(gfx::ScaleVector2d(
scroll, 1.f / active_tree_->total_page_scale_factor()));
SetNeedsRedraw();
+ client_->SetNeedsCommitOnImplThread();
+ client_->RenewTreePriority();
}
- SetNeedsAnimate();
+ if (top_controls_manager_->animation())
+ SetNeedsAnimate();
aelias_OOO_until_Jul13 2014/08/12 20:38:09 Now that I look at this, this SetNeedsAnimate shou
jdduke (slow) 2014/08/12 22:48:50 Done.
}
void LayerTreeHostImpl::AnimateLayers(base::TimeTicks monotonic_time) {
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698