Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: cc/trees/transform_node.h

Issue 2251303003: Implement position: sticky updates on compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with master and add comments to WebLayerStickyPositionConstraint members. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/property_tree_builder.cc ('k') | cc/trees/transform_node.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/trees/property_tree_builder.cc ('k') | cc/trees/transform_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698