| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |