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/cc_export.h" | 8 #include "cc/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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 gfx::Transform pre_local; | 48 gfx::Transform pre_local; |
49 gfx::Transform local; | 49 gfx::Transform local; |
50 gfx::Transform post_local; | 50 gfx::Transform post_local; |
51 | 51 |
52 gfx::Transform to_parent; | 52 gfx::Transform to_parent; |
53 | 53 |
54 // This is the node which defines the sticky position constraints for this | 54 // This is the node which defines the sticky position constraints for this |
55 // transform node. -1 indicates there are no sticky position constraints. | 55 // transform node. -1 indicates there are no sticky position constraints. |
56 int sticky_position_constraint_id; | 56 int sticky_position_constraint_id; |
57 | 57 |
| 58 // This stores the main thread offset applied to the sticky element from main |
| 59 // thread. It's used to calculate the additional sticky position offset from |
| 60 // cc. |
| 61 gfx::Vector2dF sticky_main_thread_offset; |
| 62 |
58 // This is the node with respect to which source_offset is defined. This will | 63 // This is the node with respect to which source_offset is defined. This will |
59 // not be needed once layerization moves to cc, but is needed in order to | 64 // not be needed once layerization moves to cc, but is needed in order to |
60 // efficiently update the transform tree for changes to position in the layer | 65 // efficiently update the transform tree for changes to position in the layer |
61 // tree. | 66 // tree. |
62 int source_node_id; | 67 int source_node_id; |
63 | 68 |
64 // This id determines which 3d rendering context the node is in. 0 is a | 69 // This id determines which 3d rendering context the node is in. 0 is a |
65 // special value and indicates that the node is not in any 3d rendering | 70 // special value and indicates that the node is not in any 3d rendering |
66 // context. | 71 // context. |
67 int sorting_context_id; | 72 int sorting_context_id; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 gfx::Transform to_screen; | 168 gfx::Transform to_screen; |
164 | 169 |
165 bool is_showing_backface : 1; | 170 bool is_showing_backface : 1; |
166 | 171 |
167 bool operator==(const TransformCachedNodeData& other) const; | 172 bool operator==(const TransformCachedNodeData& other) const; |
168 }; | 173 }; |
169 | 174 |
170 } // namespace cc | 175 } // namespace cc |
171 | 176 |
172 #endif // CC_TREES_TRANSFORM_NODE_H_ | 177 #endif // CC_TREES_TRANSFORM_NODE_H_ |
OLD | NEW |