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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 661643004: [android] Remove unused scroll delta in TopControls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding my name to authors lists Created 6 years, 2 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 | « cc/input/top_controls_manager.cc ('k') | no next file » | 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 c5b9566fc070a1d554a63823d31fd26135e972de..3b4f724104f6c8b2364b9e3e243cfb500a39bc25 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -2662,6 +2662,8 @@ bool LayerTreeHostImpl::ScrollBy(const gfx::Point& viewport_point,
!layer_impl->user_scrollable_vertical())
unused_root_delta.set_y(0.0f);
}
+ if (consume_by_top_controls && unused_root_delta.y() > 0.0f)
jdduke (slow) 2014/10/16 21:29:17 Can you think of a solution that limits how much L
sujith 2014/10/17 14:51:04 Done.
+ top_controls_manager_->RemoveUnUsedScrollDelta(unused_root_delta.y());
}
// If the layer wasn't able to move, try the next one in the hierarchy.
« no previous file with comments | « cc/input/top_controls_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698