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

Unified Diff: cc/trees/layer_tree_host_common.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/proto/property_tree.proto ('k') | cc/trees/property_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index c16382e20a0033d87d1d3fab8fc7f817985a0792..9fec1abacfdfe44e2515466622c614ae3cb871dc 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -646,8 +646,6 @@ void CalculateRenderSurfaceLayerList(
descendants = &(layer->render_surface()->layer_list());
}
- size_t descendants_size = descendants->size();
-
bool layer_should_be_skipped = !draw_property_utils::LayerNeedsUpdate(
layer, layer_is_drawn, property_trees->transform_tree);
if (!layer_should_be_skipped) {
@@ -731,13 +729,6 @@ void CalculateRenderSurfaceLayerList(
if (render_to_separate_surface && !IsRootLayer(layer) &&
layer->render_surface()->DrawableContentRect().IsEmpty()) {
RemoveSurfaceForEarlyExit(layer, render_surface_layer_list);
- return;
- }
-
- // If neither this layer nor any of its children were added, early out.
- if (descendants_size == descendants->size()) {
- DCHECK(!render_to_separate_surface || IsRootLayer(layer));
- return;
}
}
« no previous file with comments | « cc/proto/property_tree.proto ('k') | cc/trees/property_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698