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

Unified Diff: cc/layers/layer_list_iterator_unittest.cc

Issue 2080223010: cc: Clean up root_layer code in LTI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase++ Created 4 years, 6 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_iterator_unittest.cc ('k') | cc/layers/layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_list_iterator_unittest.cc
diff --git a/cc/layers/layer_list_iterator_unittest.cc b/cc/layers/layer_list_iterator_unittest.cc
index 6900ae3913db869c958d7d73318c5d5d2e4cd474..cb538e08817f181605ab3c034045c44be85dd940 100644
--- a/cc/layers/layer_list_iterator_unittest.cc
+++ b/cc/layers/layer_list_iterator_unittest.cc
@@ -239,7 +239,7 @@ TEST(LayerListIteratorTest, VerifyTraversalOrderImpl) {
layer1->test_properties()->AddChild(std::move(layer2));
layer1->test_properties()->AddChild(std::move(layer5));
- host_impl.active_tree()->SetRootLayer(std::move(layer1));
+ host_impl.active_tree()->SetRootLayerForTesting(std::move(layer1));
host_impl.active_tree()->BuildLayerListForTesting();
int i = 1;
@@ -263,7 +263,7 @@ TEST(LayerListIteratorTest, VerifySingleLayerImpl) {
// This test constructs a tree consisting of a single layer.
std::unique_ptr<LayerImpl> layer1 =
LayerImpl::Create(host_impl.active_tree(), 1);
- host_impl.active_tree()->SetRootLayer(std::move(layer1));
+ host_impl.active_tree()->SetRootLayerForTesting(std::move(layer1));
host_impl.active_tree()->BuildLayerListForTesting();
int i = 1;
@@ -329,7 +329,7 @@ TEST(LayerListReverseIteratorTest, VerifyTraversalOrderImpl) {
layer1->test_properties()->AddChild(std::move(layer2));
layer1->test_properties()->AddChild(std::move(layer5));
- host_impl.active_tree()->SetRootLayer(std::move(layer1));
+ host_impl.active_tree()->SetRootLayerForTesting(std::move(layer1));
host_impl.active_tree()->BuildLayerListForTesting();
int i = 7;
@@ -355,7 +355,7 @@ TEST(LayerListReverseIteratorTest, VerifySingleLayerImpl) {
// This test constructs a tree consisting of a single layer.
std::unique_ptr<LayerImpl> layer1 =
LayerImpl::Create(host_impl.active_tree(), 1);
- host_impl.active_tree()->SetRootLayer(std::move(layer1));
+ host_impl.active_tree()->SetRootLayerForTesting(std::move(layer1));
host_impl.active_tree()->BuildLayerListForTesting();
int i = 1;
« no previous file with comments | « cc/layers/layer_iterator_unittest.cc ('k') | cc/layers/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698