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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 1097583002: cc: Commit property trees to the compositor thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index ac473ab3a3fed9140ad40f6c2163cd23597be002..5f431e26d5fdfc2d72c6b0c42780ca576bc30f88 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -365,6 +365,7 @@ void LayerTreeHost::FinishCommitOnImplThread(LayerTreeHostImpl* host_impl) {
}
sync_tree->set_has_ever_been_drawn(false);
+ sync_tree->SetPropertyTrees(property_trees_);
{
TRACE_EVENT0("cc", "LayerTreeHost::PushProperties");
@@ -798,7 +799,6 @@ bool LayerTreeHost::UpdateLayers(Layer* root_layer,
// that we won't be able to detect if a layer is part of |update_list|.
// Change this if this information is required.
int render_surface_layer_list_id = 0;
- PropertyTrees property_trees;
LayerTreeHostCommon::CalcDrawPropsMainInputs inputs(
root_layer, device_viewport_size(), gfx::Transform(),
device_scale_factor_, page_scale_factor_, page_scale_layer,
@@ -808,7 +808,7 @@ bool LayerTreeHost::UpdateLayers(Layer* root_layer,
can_render_to_separate_surface,
settings_.layer_transforms_should_scale_layer_contents,
settings_.verify_property_trees, &update_list,
- render_surface_layer_list_id, &property_trees);
+ render_surface_layer_list_id, &property_trees_);
LayerTreeHostCommon::CalculateDrawProperties(&inputs);
}

Powered by Google App Engine
This is Rietveld 408576698