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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 // TODO(vollick): will be moved when accelerated effects are implemented. | 63 // TODO(vollick): will be moved when accelerated effects are implemented. |
64 bool needs_local_transform_update; | 64 bool needs_local_transform_update; |
65 | 65 |
66 bool is_invertible; | 66 bool is_invertible; |
67 bool ancestors_are_invertible; | 67 bool ancestors_are_invertible; |
68 | 68 |
69 bool is_animated; | 69 bool is_animated; |
70 bool to_screen_is_animated; | 70 bool to_screen_is_animated; |
71 | 71 |
72 bool flattens; | 72 // We don't necessarily create a transform node to apply flattening. If we've |
| 73 // skipped flattening for an ancestor, we must flatten the transform we |
| 74 // inherit, but we don't necessarily need to flatten our local transform. We |
| 75 // must therefore use two values to describe the flattening required for the |
| 76 // local and inherited transforms. |
| 77 bool flattens_inherited_transform; |
| 78 bool flattens_local_transform; |
73 bool scrolls; | 79 bool scrolls; |
74 | 80 |
75 bool needs_sublayer_scale; | 81 bool needs_sublayer_scale; |
76 // 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 |
77 // the raster scale cannot be extracted from the screen space transform. | 83 // the raster scale cannot be extracted from the screen space transform. |
78 float layer_scale_factor; | 84 float layer_scale_factor; |
79 gfx::Vector2dF sublayer_scale; | 85 gfx::Vector2dF sublayer_scale; |
80 | 86 |
81 // TODO(vollick): will be moved when accelerated effects are implemented. | 87 // TODO(vollick): will be moved when accelerated effects are implemented. |
82 gfx::Vector2dF scroll_offset; | 88 gfx::Vector2dF scroll_offset; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 void UpdateSnapping(TransformNode* node); | 188 void UpdateSnapping(TransformNode* node); |
183 }; | 189 }; |
184 | 190 |
185 class CC_EXPORT ClipTree final : public PropertyTree<ClipNode> {}; | 191 class CC_EXPORT ClipTree final : public PropertyTree<ClipNode> {}; |
186 | 192 |
187 class CC_EXPORT OpacityTree final : public PropertyTree<OpacityNode> {}; | 193 class CC_EXPORT OpacityTree final : public PropertyTree<OpacityNode> {}; |
188 | 194 |
189 } // namespace cc | 195 } // namespace cc |
190 | 196 |
191 #endif // CC_TREES_PROPERTY_TREE_H_ | 197 #endif // CC_TREES_PROPERTY_TREE_H_ |
OLD | NEW |