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

Unified Diff: cc/layers/layer.cc

Issue 210543002: Removed pinch viewport scroll offset distribution (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« 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: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index d016571e9094b6ea052661a4dbcee33e80a4d6c5..e2469c34a7d4e3b6991fee38eff4a56271d0a34a 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -674,7 +674,11 @@ void Layer::RemoveClipChild(Layer* child) {
void Layer::SetScrollOffset(gfx::Vector2d scroll_offset) {
DCHECK(IsPropertyChangeAllowed());
- if (layer_tree_host()) {
+ // TODO(bokan): Virtual viewport pinch doesn't need manual updates of main
+ // frame and pinch viewport layers. Remove once old-style pinch is no longer
+ // supported.
+ if (layer_tree_host() &&
+ !layer_tree_host()->settings().use_pinch_virtual_viewport) {
scroll_offset = layer_tree_host()->DistributeScrollOffsetToViewports(
aelias_OOO_until_Jul13 2014/03/25 00:09:23 It looks like this method just does "return offset
scroll_offset, this);
}
« 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