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

Unified Diff: cc/trees/property_tree.cc

Issue 1624693004: cc:: Add transform nodes at boundaries of 3d rendering contexts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/property_tree.h ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree.cc
diff --git a/cc/trees/property_tree.cc b/cc/trees/property_tree.cc
index aae88ae688d4b43983c59baa771f6919bfbdd7f3..3f68f0ced674e3c5ef6d4385f16625e9e7e81e81 100644
--- a/cc/trees/property_tree.cc
+++ b/cc/trees/property_tree.cc
@@ -125,6 +125,7 @@ TransformNodeData::TransformNodeData()
: target_id(-1),
content_target_id(-1),
source_node_id(-1),
+ sorting_context_id(0),
needs_local_transform_update(true),
is_invertible(true),
ancestors_are_invertible(true),
@@ -159,6 +160,7 @@ bool TransformNodeData::operator==(const TransformNodeData& other) const {
target_id == other.target_id &&
content_target_id == other.content_target_id &&
source_node_id == other.source_node_id &&
+ sorting_context_id == other.sorting_context_id &&
needs_local_transform_update == other.needs_local_transform_update &&
is_invertible == other.is_invertible &&
ancestors_are_invertible == other.ancestors_are_invertible &&
@@ -236,6 +238,7 @@ void TransformNodeData::ToProtobuf(proto::TreeNode* proto) const {
data->set_target_id(target_id);
data->set_content_target_id(content_target_id);
data->set_source_node_id(source_node_id);
+ data->set_sorting_context_id(sorting_context_id);
data->set_needs_local_transform_update(needs_local_transform_update);
@@ -300,6 +303,7 @@ void TransformNodeData::FromProtobuf(const proto::TreeNode& proto) {
target_id = data.target_id();
content_target_id = data.content_target_id();
source_node_id = data.source_node_id();
+ sorting_context_id = data.sorting_context_id();
needs_local_transform_update = data.needs_local_transform_update();
« no previous file with comments | « cc/trees/property_tree.h ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698