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 actual sticky position offset from cc. | |
flackr
2017/06/01 19:01:47
nit: s/actual sticky position offset/additional st
yigu
2017/06/01 19:28:40
Done.
| |
60 gfx::Vector2dF sticky_main_thread_offset; | |
61 | |
58 // This is the node with respect to which source_offset is defined. This will | 62 // 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 | 63 // 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 | 64 // efficiently update the transform tree for changes to position in the layer |
61 // tree. | 65 // tree. |
62 int source_node_id; | 66 int source_node_id; |
63 | 67 |
64 // This id determines which 3d rendering context the node is in. 0 is a | 68 // 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 | 69 // special value and indicates that the node is not in any 3d rendering |
66 // context. | 70 // context. |
67 int sorting_context_id; | 71 int sorting_context_id; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
163 gfx::Transform to_screen; | 167 gfx::Transform to_screen; |
164 | 168 |
165 bool is_showing_backface : 1; | 169 bool is_showing_backface : 1; |
166 | 170 |
167 bool operator==(const TransformCachedNodeData& other) const; | 171 bool operator==(const TransformCachedNodeData& other) const; |
168 }; | 172 }; |
169 | 173 |
170 } // namespace cc | 174 } // namespace cc |
171 | 175 |
172 #endif // CC_TREES_TRANSFORM_NODE_H_ | 176 #endif // CC_TREES_TRANSFORM_NODE_H_ |
OLD | NEW |