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

Unified Diff: cc/layers/layer_position_constraint_unittest.cc

Issue 2253143002: Revert of 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, 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
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_proto_converter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3bd43704f4a3bfcca0f3e0a04370b854144a0756..d9aa0ed573d46e57166393de8f4b1c4d755762cf 100644
--- a/cc/layers/layer_position_constraint_unittest.cc
+++ b/cc/layers/layer_position_constraint_unittest.cc
@@ -132,17 +132,17 @@
root_->AddChild(inner_viewport_container_layer_);
layer_tree_host_->SetRootLayer(root_);
- layer_tree_host_->GetLayerTree()->RegisterViewportLayers(
- nullptr, root_, scroll_layer_, child_);
+ layer_tree_host_->RegisterViewportLayers(nullptr, root_, scroll_layer_,
+ child_);
}
void CommitAndUpdateImplPointers() {
LayerTreeHostCommon::CalcDrawPropsMainInputsForTesting inputs(
root_.get(), root_->bounds());
inputs.inner_viewport_scroll_layer =
- layer_tree_host_->GetLayerTree()->inner_viewport_scroll_layer();
+ layer_tree_host_->inner_viewport_scroll_layer();
inputs.outer_viewport_scroll_layer =
- layer_tree_host_->GetLayerTree()->outer_viewport_scroll_layer();
+ layer_tree_host_->outer_viewport_scroll_layer();
LayerTreeHostCommon::CalculateDrawPropertiesForTesting(&inputs);
// Since scroll deltas aren't sent back to the main thread in this test
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_proto_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698