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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 2571263002: cc: Remove map lookup from RenderSurfaceImpl::EffectTreeIndex (Closed)
Patch Set: Fix post-rebase unit test failure Created 3 years, 11 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/layer_tree_host_unittest.cc ('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_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 6045b46f3683eb84826129fa77d3e1450be4d3ec..9d4773d5fe03fc06f31bd29c16797b7903477593 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -379,7 +379,11 @@ static void UpdateClipTreeForBoundsDeltaOnLayer(LayerImpl* layer,
}
void LayerTreeImpl::SetPropertyTrees(PropertyTrees* property_trees) {
+ EffectTree::StableIdRenderSurfaceList stable_id_render_surface_list =
+ property_trees_.effect_tree.CreateStableIdRenderSurfaceList();
property_trees_ = *property_trees;
+ property_trees_.effect_tree.UpdateRenderSurfaceEffectIds(
+ stable_id_render_surface_list, this);
property_trees->effect_tree.PushCopyRequestsTo(&property_trees_.effect_tree);
property_trees_.is_main_thread = false;
property_trees_.is_active = IsActiveTree();
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/property_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698