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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 2770963002: Build property trees for the HUD layer when using layer lists (Closed)
Patch Set: 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
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 8b0976ddfaa674473b8921f232d0eea4036e938f..b8904fffa2f82fcc211fddfd05eedc579489c72e 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -688,6 +688,10 @@ bool LayerTreeHost::DoUpdateLayers(Layer* root_layer) {
"cc", "LayerTreeHostInProcess::UpdateLayers_ReceivedPropertyTrees",
TRACE_EVENT_SCOPE_THREAD, "property_trees",
property_trees->AsTracedValue());
+ // The HUD layer is managed outside the layer list sent to LayerTreeHost
+ // and needs to have its property tree state initialized.
+ if (hud_layer_.get())
+ root_layer->copyPropertyTreeStateTo(hud_layer_.get());
}
draw_property_utils::UpdatePropertyTrees(this, property_trees,
can_render_to_separate_surface);
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698