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

Unified Diff: cc/trees/property_tree.h

Issue 1106013002: cc: Fix property tree position updates when rebuilding is skipped (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree.h
diff --git a/cc/trees/property_tree.h b/cc/trees/property_tree.h
index 42e2e16958e7f5851dc709dbb0a77b4acf625f39..c0796cff377c2b2f6a418293a02497614cb53950 100644
--- a/cc/trees/property_tree.h
+++ b/cc/trees/property_tree.h
@@ -60,6 +60,12 @@ struct CC_EXPORT TransformNodeData {
// with this transform node.
int content_target_id;
+ // This is the node with respect to which source_offset is defined. This will
+ // not be needed once layerization moves to cc, but is needed in order to
+ // efficiently update the transform tree for changes to position in the layer
+ // tree.
+ int source_node_id;
+
// TODO(vollick): will be moved when accelerated effects are implemented.
bool needs_local_transform_update;
@@ -98,7 +104,7 @@ struct CC_EXPORT TransformNodeData {
gfx::Vector2dF scroll_snap;
// TODO(vollick): will be moved when accelerated effects are implemented.
- gfx::Vector2dF parent_offset;
+ gfx::Vector2dF source_offset;
void set_to_parent(const gfx::Transform& transform) {
to_parent = transform;
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698