Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TRANSFORM_NODE_H_ | 5 #ifndef CC_TREES_TRANSFORM_NODE_H_ |
| 6 #define CC_TREES_TRANSFORM_NODE_H_ | 6 #define CC_TREES_TRANSFORM_NODE_H_ |
| 7 | 7 |
| 8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
| 9 #include "ui/gfx/geometry/point_f.h" | 9 #include "ui/gfx/geometry/point_f.h" |
| 10 #include "ui/gfx/geometry/scroll_offset.h" | 10 #include "ui/gfx/geometry/scroll_offset.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 // special value and indicates that the node is not in any 3d rendering | 63 // special value and indicates that the node is not in any 3d rendering |
| 64 // context. | 64 // context. |
| 65 int sorting_context_id; | 65 int sorting_context_id; |
| 66 | 66 |
| 67 // TODO(vollick): will be moved when accelerated effects are implemented. | 67 // TODO(vollick): will be moved when accelerated effects are implemented. |
| 68 bool needs_local_transform_update : 1; | 68 bool needs_local_transform_update : 1; |
| 69 | 69 |
| 70 bool node_and_ancestors_are_animated_or_invertible : 1; | 70 bool node_and_ancestors_are_animated_or_invertible : 1; |
| 71 | 71 |
| 72 bool is_invertible : 1; | 72 bool is_invertible : 1; |
| 73 bool ancestors_are_invertible : 1; | 73 mutable bool ancestors_are_invertible : 1; |
|
ajuma
2016/07/22 18:29:40
See earlier comment about this. Instead of allowin
sunxd
2016/07/22 20:25:03
Done.
| |
| 74 | 74 |
| 75 bool has_potential_animation : 1; | 75 bool has_potential_animation : 1; |
| 76 bool is_currently_animating : 1; | 76 bool is_currently_animating : 1; |
| 77 bool to_screen_is_potentially_animated : 1; | 77 bool to_screen_is_potentially_animated : 1; |
| 78 bool has_only_translation_animations : 1; | 78 bool has_only_translation_animations : 1; |
| 79 | 79 |
| 80 // Flattening, when needed, is only applied to a node's inherited transform, | 80 // Flattening, when needed, is only applied to a node's inherited transform, |
| 81 // never to its local transform. | 81 // never to its local transform. |
| 82 bool flattens_inherited_transform : 1; | 82 bool flattens_inherited_transform : 1; |
| 83 | 83 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 159 | 159 |
| 160 bool operator==(const TransformCachedNodeData& other) const; | 160 bool operator==(const TransformCachedNodeData& other) const; |
| 161 | 161 |
| 162 void ToProtobuf(proto::TransformCachedNodeData* proto) const; | 162 void ToProtobuf(proto::TransformCachedNodeData* proto) const; |
| 163 void FromProtobuf(const proto::TransformCachedNodeData& proto); | 163 void FromProtobuf(const proto::TransformCachedNodeData& proto); |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 } // namespace cc | 166 } // namespace cc |
| 167 | 167 |
| 168 #endif // CC_TREES_TRANSFORM_NODE_H_ | 168 #endif // CC_TREES_TRANSFORM_NODE_H_ |
| OLD | NEW |