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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // directly on the transform/scroll display list items when that's possible, | 46 // directly on the transform/scroll display list items when that's possible, |
47 // or potentially in a scroll tree. | 47 // or potentially in a scroll tree. |
48 // | 48 // |
49 // TODO(vollick): will be moved when accelerated effects are implemented. | 49 // TODO(vollick): will be moved when accelerated effects are implemented. |
50 gfx::Transform pre_local; | 50 gfx::Transform pre_local; |
51 gfx::Transform local; | 51 gfx::Transform local; |
52 gfx::Transform post_local; | 52 gfx::Transform post_local; |
53 | 53 |
54 gfx::Transform to_parent; | 54 gfx::Transform to_parent; |
55 | 55 |
| 56 // This is the node which defines the sticky position constraints for this |
| 57 // transform node. -1 indicates there are no sticky position constraints. |
| 58 int sticky_position_constraint_id; |
| 59 |
56 // This is the node with respect to which source_offset is defined. This will | 60 // This is the node with respect to which source_offset is defined. This will |
57 // not be needed once layerization moves to cc, but is needed in order to | 61 // not be needed once layerization moves to cc, but is needed in order to |
58 // efficiently update the transform tree for changes to position in the layer | 62 // efficiently update the transform tree for changes to position in the layer |
59 // tree. | 63 // tree. |
60 int source_node_id; | 64 int source_node_id; |
61 | 65 |
62 // This id determines which 3d rendering context the node is in. 0 is a | 66 // This id determines which 3d rendering context the node is in. 0 is a |
63 // special value and indicates that the node is not in any 3d rendering | 67 // special value and indicates that the node is not in any 3d rendering |
64 // context. | 68 // context. |
65 int sorting_context_id; | 69 int sorting_context_id; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 163 |
160 bool operator==(const TransformCachedNodeData& other) const; | 164 bool operator==(const TransformCachedNodeData& other) const; |
161 | 165 |
162 void ToProtobuf(proto::TransformCachedNodeData* proto) const; | 166 void ToProtobuf(proto::TransformCachedNodeData* proto) const; |
163 void FromProtobuf(const proto::TransformCachedNodeData& proto); | 167 void FromProtobuf(const proto::TransformCachedNodeData& proto); |
164 }; | 168 }; |
165 | 169 |
166 } // namespace cc | 170 } // namespace cc |
167 | 171 |
168 #endif // CC_TREES_TRANSFORM_NODE_H_ | 172 #endif // CC_TREES_TRANSFORM_NODE_H_ |
OLD | NEW |