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

Side by Side Diff: cc/trees/property_tree.h

Issue 1021823006: Fix scroll position adjustment for fixed-position layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TREES_PROPERTY_TREE_H_ 5 #ifndef CC_TREES_PROPERTY_TREE_H_
6 #define CC_TREES_PROPERTY_TREE_H_ 6 #define CC_TREES_PROPERTY_TREE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 bool needs_sublayer_scale; 81 bool needs_sublayer_scale;
82 // This is used as a fallback when we either cannot adjust raster scale or if 82 // This is used as a fallback when we either cannot adjust raster scale or if
83 // the raster scale cannot be extracted from the screen space transform. 83 // the raster scale cannot be extracted from the screen space transform.
84 float layer_scale_factor; 84 float layer_scale_factor;
85 gfx::Vector2dF sublayer_scale; 85 gfx::Vector2dF sublayer_scale;
86 86
87 // TODO(vollick): will be moved when accelerated effects are implemented. 87 // TODO(vollick): will be moved when accelerated effects are implemented.
88 gfx::Vector2dF scroll_offset; 88 gfx::Vector2dF scroll_offset;
89 89
90 // We scroll snap where possible, but this has an effect on scroll
91 // compensation: the snap is yet more scrolling that must be compensated for.
92 // This value stores the snapped amount for this purpose.
93 gfx::Vector2dF scroll_snap;
94
90 void set_to_parent(const gfx::Transform& transform) { 95 void set_to_parent(const gfx::Transform& transform) {
91 to_parent = transform; 96 to_parent = transform;
92 is_invertible = to_parent.IsInvertible(); 97 is_invertible = to_parent.IsInvertible();
93 } 98 }
94 }; 99 };
95 100
96 typedef TreeNode<TransformNodeData> TransformNode; 101 typedef TreeNode<TransformNodeData> TransformNode;
97 102
98 struct CC_EXPORT ClipNodeData { 103 struct CC_EXPORT ClipNodeData {
99 ClipNodeData(); 104 ClipNodeData();
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 void UpdateSnapping(TransformNode* node); 193 void UpdateSnapping(TransformNode* node);
189 }; 194 };
190 195
191 class CC_EXPORT ClipTree final : public PropertyTree<ClipNode> {}; 196 class CC_EXPORT ClipTree final : public PropertyTree<ClipNode> {};
192 197
193 class CC_EXPORT OpacityTree final : public PropertyTree<OpacityNode> {}; 198 class CC_EXPORT OpacityTree final : public PropertyTree<OpacityNode> {};
194 199
195 } // namespace cc 200 } // namespace cc
196 201
197 #endif // CC_TREES_PROPERTY_TREE_H_ 202 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698