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

Unified Diff: cc/test/layer_tree_pixel_test.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: remove unused test file. 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/test/layer_tree_pixel_test.cc
diff --git a/cc/test/layer_tree_pixel_test.cc b/cc/test/layer_tree_pixel_test.cc
index 9ac636256feb3ee379dc68b7fefa58894ddf6169..3ac18fcbcb7f396e8be30333e4d6cd1da75a0c1f 100644
--- a/cc/test/layer_tree_pixel_test.cc
+++ b/cc/test/layer_tree_pixel_test.cc
@@ -105,8 +105,8 @@ void LayerTreePixelTest::ReadbackResult(
}
void LayerTreePixelTest::BeginTest() {
- Layer* target = readback_target_ ? readback_target_
- : layer_tree_host()->root_layer();
+ Layer* target =
+ readback_target_ ? readback_target_ : layer_tree()->root_layer();
target->RequestCopyOfOutput(CreateCopyOutputRequest());
PostSetNeedsCommitToMainThread();
}
@@ -219,7 +219,7 @@ void LayerTreePixelTest::SetupTree() {
scoped_refptr<Layer> root = Layer::Create();
root->SetBounds(content_root_->bounds());
root->AddChild(content_root_);
- layer_tree_host()->SetRootLayer(root);
+ layer_tree()->SetRootLayer(root);
LayerTreeTest::SetupTree();
}

Powered by Google App Engine
This is Rietveld 408576698