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

Unified Diff: cc/layers/render_surface_impl.cc

Issue 2753933005: cc: Move Layer Id to Node Map to Individual Property Tree Private (Closed)
Patch Set: address review comments Created 3 years, 9 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
Index: cc/layers/render_surface_impl.cc
diff --git a/cc/layers/render_surface_impl.cc b/cc/layers/render_surface_impl.cc
index 4b6355631c136132effbc5ef218dd955f3d3e009..10989e18f3f4a6402b8f6ccca78ffda40d26cd71 100644
--- a/cc/layers/render_surface_impl.cc
+++ b/cc/layers/render_surface_impl.cc
@@ -158,9 +158,10 @@ int RenderSurfaceImpl::ClipTreeIndex() const {
}
int RenderSurfaceImpl::EffectTreeIndex() const {
- DCHECK_EQ(effect_tree_index_,
- layer_tree_impl_->property_trees()
- ->layer_id_to_effect_node_index[stable_effect_id_]);
+ DCHECK_EQ(
+ effect_tree_index_,
+ layer_tree_impl_->property_trees()->effect_tree.FindNodeIndexFromOwningId(
+ stable_effect_id_));
return effect_tree_index_;
}
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | cc/trees/property_tree.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698