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

Unified Diff: cc/trees/draw_property_utils.cc

Issue 2540333002: cc: Remove map lookup from RenderSurfaceImpl::EffectTreeIndex (Closed)
Patch Set: Created 4 years 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/layers/render_surface_unittest.cc ('k') | no next file » | 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 cc45ba11d8a03bb74a9a2bbed4960a59aece0af2..8229cb3bdc203a5c62de316b239ce11e93229c94 100644
--- a/cc/trees/draw_property_utils.cc
+++ b/cc/trees/draw_property_utils.cc
@@ -1071,8 +1071,11 @@ void ComputeVisibleRects(LayerImpl* root_layer,
can_render_to_separate_surface, layer);
EffectNode* node =
property_trees->effect_tree.Node(layer->effect_tree_index());
- if (node->owner_id == layer->id())
+ if (node->owner_id == layer->id()) {
node->render_surface = layer->render_surface();
+ if (node->render_surface)
+ node->render_surface->set_effect_tree_index(node->id);
+ }
#if DCHECK_IS_ON()
if (can_render_to_separate_surface)
ValidateRenderSurfaceForLayer(layer);
« no previous file with comments | « cc/layers/render_surface_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698