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

Unified Diff: cc/trees/layer_tree_host_common_unittest.cc

Issue 2183403002: cc: Move data to LayerTree from LayerTreeHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@layer_tree_change
Patch Set: .. Created 4 years, 5 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_common_unittest.cc
diff --git a/cc/trees/layer_tree_host_common_unittest.cc b/cc/trees/layer_tree_host_common_unittest.cc
index 1953970a32a5a5bf6ed5dcdf40f58ac5efa89e87..bd3bb491ab59bbdcff8cea18da9a8e5ee75889af 100644
--- a/cc/trees/layer_tree_host_common_unittest.cc
+++ b/cc/trees/layer_tree_host_common_unittest.cc
@@ -7697,8 +7697,8 @@ TEST_F(LayerTreeHostCommonTest, NodesAffectedByBoundsDeltaGetUpdated) {
outer_viewport_scroll_layer->SetIsContainerForFixedPositionLayers(true);
host()->SetRootLayer(root);
- host()->RegisterViewportLayers(nullptr, root, inner_viewport_scroll_layer,
- outer_viewport_scroll_layer);
+ host()->GetLayerTree()->RegisterViewportLayers(
+ nullptr, root, inner_viewport_scroll_layer, outer_viewport_scroll_layer);
scoped_refptr<Layer> fixed_to_inner = Layer::Create();
scoped_refptr<Layer> fixed_to_outer = Layer::Create();
@@ -9492,7 +9492,8 @@ TEST_F(LayerTreeHostCommonTest, ScrollTreeBuilderTest) {
parent5->SetNonFastScrollableRegion(gfx::Rect(0, 0, 50, 50));
parent5->SetBounds(gfx::Size(10, 10));
- host()->RegisterViewportLayers(nullptr, page_scale_layer, parent2, nullptr);
+ host()->GetLayerTree()->RegisterViewportLayers(nullptr, page_scale_layer,
+ parent2, nullptr);
ExecuteCalculateDrawPropertiesWithPropertyTrees(root1.get());
const int kInvalidPropertyTreeNodeId = -1;

Powered by Google App Engine
This is Rietveld 408576698