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

Unified Diff: cc/trees/property_tree_builder.cc

Issue 1811423002: SubtreeShouldBeSkipped uses information from property trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows compile failure 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
« cc/trees/occlusion_tracker_unittest.cc ('K') | « cc/trees/property_tree.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree_builder.cc
diff --git a/cc/trees/property_tree_builder.cc b/cc/trees/property_tree_builder.cc
index 6b5913872561ac209827fff51409d06b634c5379..97e7a59d7f1209920156093c6267fa25e9132861 100644
--- a/cc/trees/property_tree_builder.cc
+++ b/cc/trees/property_tree_builder.cc
@@ -625,6 +625,13 @@ bool AddEffectNodeIfNeeded(
data_from_ancestor.transform_tree->next_available_id();
}
node.data.clip_id = data_from_ancestor.clip_tree_parent;
+ EffectNode* parent_node = data_for_children->effect_tree->Node(
+ data_for_children->effect_tree_parent);
ajuma 2016/03/24 15:12:00 parent_id
sunxd 2016/03/29 14:26:34 Done.
+ node.data.node_or_ancestor_has_background_filters =
+ parent_node->data.node_or_ancestor_has_background_filters ||
+ node.data.has_background_filters;
+ node.data.to_screen_opacity_is_animated =
+ parent_node->data.to_screen_opacity_is_animated || has_animated_opacity;
} else {
// Root render surface acts the unbounded and untransformed to draw content
// into. Transform node created from root layer (includes device scale
@@ -632,6 +639,7 @@ bool AddEffectNodeIfNeeded(
// to root render surface's content, but not root render surface itself.
node.data.transform_id = kRootPropertyTreeNodeId;
node.data.clip_id = kRootPropertyTreeNodeId;
+ node.data.to_screen_opacity_is_animated = has_animated_opacity;
ajuma 2016/03/24 15:12:00 Also set node_or_ancestor_has_background_filters h
sunxd 2016/03/29 14:26:34 Done.
}
data_for_children->effect_tree_parent =
data_for_children->effect_tree->Insert(node, parent_id);
« cc/trees/occlusion_tracker_unittest.cc ('K') | « cc/trees/property_tree.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698