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

Unified Diff: cc/trees/draw_property_utils.cc

Issue 2099743002: cc: Move background filters to the effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ' Created 4 years, 6 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/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/draw_property_utils.cc
diff --git a/cc/trees/draw_property_utils.cc b/cc/trees/draw_property_utils.cc
index 0e4294638f654d26d5e8942cc5558ef197f9347c..d46151d683598cdf8f0e0e53c3f8ae36c3585c0e 100644
--- a/cc/trees/draw_property_utils.cc
+++ b/cc/trees/draw_property_utils.cc
@@ -40,7 +40,6 @@ static void ValidateRenderSurfaceForLayer(LayerImpl* layer) {
return;
DCHECK(layer->filters().IsEmpty()) << "layer: " << layer->id();
- DCHECK(layer->background_filters().IsEmpty()) << "layer: " << layer->id();
DCHECK(!IsRootLayer(layer)) << "layer: " << layer->id();
EffectNode* effect_node =
layer->layer_tree_impl()->property_trees()->effect_tree.Node(
@@ -49,6 +48,7 @@ static void ValidateRenderSurfaceForLayer(LayerImpl* layer) {
return;
DCHECK_EQ(effect_node->data.mask_layer_id, -1) << "layer: " << layer->id();
DCHECK_EQ(effect_node->data.replica_layer_id, -1) << "layer: " << layer->id();
+ DCHECK(effect_node->data.background_filters.IsEmpty());
}
#endif
« no previous file with comments | « cc/trees/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698