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

Unified Diff: cc/trees/property_tree_builder.cc

Issue 1888073002: cc : Delete unused properties in effect node (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/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 5e050a389418f617c1cbace2989233cfcf761766..a9eff8c54b23ebc7fce2c0f32a96886a083420e7 100644
--- a/cc/trees/property_tree_builder.cc
+++ b/cc/trees/property_tree_builder.cc
@@ -626,12 +626,6 @@ 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(parent_id);
- 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
@@ -639,9 +633,6 @@ 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.node_or_ancestor_has_background_filters =
- node.data.has_background_filters;
- node.data.to_screen_opacity_is_animated = has_animated_opacity;
}
data_for_children->effect_tree_parent =
data_for_children->effect_tree->Insert(node, parent_id);
« no previous file with comments | « cc/trees/property_tree.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698