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

Unified Diff: cc/layers/layer_position_constraint_unittest.cc

Issue 2251143002: cc: Reland Move data to LayerTree from LayerTreeHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better fix? Created 4 years, 4 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/layers/layer_position_constraint_unittest.cc
diff --git a/cc/layers/layer_position_constraint_unittest.cc b/cc/layers/layer_position_constraint_unittest.cc
index d9aa0ed573d46e57166393de8f4b1c4d755762cf..3bd43704f4a3bfcca0f3e0a04370b854144a0756 100644
--- a/cc/layers/layer_position_constraint_unittest.cc
+++ b/cc/layers/layer_position_constraint_unittest.cc
@@ -132,17 +132,17 @@ class LayerPositionConstraintTest : public testing::Test {
root_->AddChild(inner_viewport_container_layer_);
layer_tree_host_->SetRootLayer(root_);
- layer_tree_host_->RegisterViewportLayers(nullptr, root_, scroll_layer_,
- child_);
+ layer_tree_host_->GetLayerTree()->RegisterViewportLayers(
+ nullptr, root_, scroll_layer_, child_);
}
void CommitAndUpdateImplPointers() {
LayerTreeHostCommon::CalcDrawPropsMainInputsForTesting inputs(
root_.get(), root_->bounds());
inputs.inner_viewport_scroll_layer =
- layer_tree_host_->inner_viewport_scroll_layer();
+ layer_tree_host_->GetLayerTree()->inner_viewport_scroll_layer();
inputs.outer_viewport_scroll_layer =
- layer_tree_host_->outer_viewport_scroll_layer();
+ layer_tree_host_->GetLayerTree()->outer_viewport_scroll_layer();
LayerTreeHostCommon::CalculateDrawPropertiesForTesting(&inputs);
// Since scroll deltas aren't sent back to the main thread in this test

Powered by Google App Engine
This is Rietveld 408576698