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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 2661523003: cc: Merge LayerTree into the LayerTreeHost. (Closed)
Patch Set: auto 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_common.h ('k') | cc/trees/layer_tree_host_common_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index e7c1f0f76df98791b75cc42135adbea4a8436543..d9c71941f4fdcc034b1b3e09049ed62fb5d3176f 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -573,7 +573,7 @@ void LayerTreeHostCommon::CalculateDrawPropertiesForTesting(
LayerList update_layer_list;
bool can_render_to_separate_surface = true;
PropertyTrees* property_trees =
- inputs->root_layer->GetLayerTree()->property_trees();
+ inputs->root_layer->layer_tree_host()->property_trees();
Layer* overscroll_elasticity_layer = nullptr;
gfx::Vector2dF elastic_overscroll;
PropertyTreeBuilder::BuildPropertyTrees(
@@ -586,7 +586,8 @@ void LayerTreeHostCommon::CalculateDrawPropertiesForTesting(
draw_property_utils::UpdatePropertyTrees(property_trees,
can_render_to_separate_surface);
draw_property_utils::FindLayersThatNeedUpdates(
- inputs->root_layer->GetLayerTree(), property_trees, &update_layer_list);
+ inputs->root_layer->layer_tree_host(), property_trees,
+ &update_layer_list);
}
void LayerTreeHostCommon::CalculateDrawProperties(
@@ -646,7 +647,7 @@ void LayerTreeHostCommon::CalculateDrawPropertiesForTesting(
}
PropertyTrees* GetPropertyTrees(Layer* layer) {
- return layer->GetLayerTree()->property_trees();
+ return layer->layer_tree_host()->property_trees();
}
PropertyTrees* GetPropertyTrees(LayerImpl* layer) {
« no previous file with comments | « cc/trees/layer_tree_host_common.h ('k') | cc/trees/layer_tree_host_common_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698