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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 2925213002: cc: Mark layers with invalid property tree indices as non-drawable. (Closed)
Patch Set: .. Created 3 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/draw_property_utils.cc ('k') | no next file » | 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 93b33358cd7718b7d3001a87074ff1f183305ac9..e67ddad7db34e4e9daf19cb5ccf908191f5ce587 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -367,10 +367,13 @@ static void ComputeInitialRenderSurfaceList(
DCHECK(layer);
// TODO(crbug.com/726423): LayerImpls should never have invalid PropertyTree
// indices.
- if (!layer || !layer->HasValidPropertyTreeIndices())
+ if (!layer)
continue;
-
layer->set_contributes_to_drawn_render_surface(false);
+ layer->set_raster_even_if_not_drawn(false);
+
+ if (!layer->HasValidPropertyTreeIndices())
+ continue;
bool is_root = layer_tree_impl->IsRootLayer(layer);
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698