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

Unified Diff: cc/trees/property_tree.cc

Issue 1832233002: cc : Use effect tree to determine if a layer is inside replica (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 d3b6a7eb752be274bd37c2ed369b550d4ae82359..281c72f1561a3e3bf12772a9896a11d515066096 100644
--- a/cc/trees/property_tree.cc
+++ b/cc/trees/property_tree.cc
@@ -443,7 +443,8 @@ EffectNodeData::EffectNodeData()
effect_changed(false),
num_copy_requests_in_subtree(0),
transform_id(0),
- clip_id(0) {}
+ clip_id(0),
+ target_id(0) {}
EffectNodeData::EffectNodeData(const EffectNodeData& other) = default;
@@ -457,7 +458,8 @@ bool EffectNodeData::operator==(const EffectNodeData& other) const {
has_animated_opacity == other.has_animated_opacity &&
effect_changed == other.effect_changed &&
num_copy_requests_in_subtree == other.num_copy_requests_in_subtree &&
- transform_id == other.transform_id && clip_id == other.clip_id;
+ transform_id == other.transform_id && clip_id == other.clip_id &&
+ target_id == other.target_id;
}
void EffectNodeData::ToProtobuf(proto::TreeNode* proto) const {
@@ -474,6 +476,7 @@ void EffectNodeData::ToProtobuf(proto::TreeNode* proto) const {
data->set_num_copy_requests_in_subtree(num_copy_requests_in_subtree);
data->set_transform_id(transform_id);
data->set_clip_id(clip_id);
+ data->set_target_id(target_id);
}
void EffectNodeData::FromProtobuf(const proto::TreeNode& proto) {
@@ -491,6 +494,7 @@ void EffectNodeData::FromProtobuf(const proto::TreeNode& proto) {
num_copy_requests_in_subtree = data.num_copy_requests_in_subtree();
transform_id = data.transform_id();
clip_id = data.clip_id();
+ target_id = data.target_id();
}
ScrollNodeData::ScrollNodeData()
« 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