| Index: cc/trees/layer_tree_host_unittest_copyrequest.cc
|
| diff --git a/cc/trees/layer_tree_host_unittest_copyrequest.cc b/cc/trees/layer_tree_host_unittest_copyrequest.cc
|
| index 134b17c00c2659db6e0697611fb42dc03c39a5a3..f18fa6314de2778d875229bc93941a9be2d18184 100644
|
| --- a/cc/trees/layer_tree_host_unittest_copyrequest.cc
|
| +++ b/cc/trees/layer_tree_host_unittest_copyrequest.cc
|
| @@ -43,7 +43,7 @@
|
| grand_child->SetBounds(gfx::Size(5, 5));
|
| child->AddChild(grand_child);
|
|
|
| - layer_tree()->SetRootLayer(root);
|
| + layer_tree_host()->SetRootLayer(root);
|
| LayerTreeHostCopyRequestTest::SetupTree();
|
| client_.set_bounds(root->bounds());
|
| }
|
| @@ -204,7 +204,7 @@
|
| layer_->SetBounds(gfx::Size(15, 15));
|
| root_->AddChild(layer_);
|
|
|
| - layer_tree()->SetRootLayer(root_);
|
| + layer_tree_host()->SetRootLayer(root_);
|
| LayerTreeHostCopyRequestTest::SetupTree();
|
| client_.set_bounds(root_->bounds());
|
| }
|
| @@ -259,7 +259,7 @@
|
| impl_destroyed_->SetBounds(gfx::Size(10, 10));
|
| root_->AddChild(impl_destroyed_);
|
|
|
| - layer_tree()->SetRootLayer(root_);
|
| + layer_tree_host()->SetRootLayer(root_);
|
| LayerTreeHostCopyRequestTest::SetupTree();
|
| client_.set_bounds(root_->bounds());
|
| }
|
| @@ -291,7 +291,7 @@
|
| EXPECT_EQ(1, callback_count_);
|
|
|
| // Prevent drawing so we can't make a copy of the impl_destroyed layer.
|
| - layer_tree()->SetViewportSize(gfx::Size());
|
| + layer_tree_host()->SetViewportSize(gfx::Size());
|
| break;
|
| case 2:
|
| // Flush the message loops and make sure the callbacks run.
|
| @@ -358,7 +358,7 @@
|
| copy_layer_->SetBounds(gfx::Size(10, 10));
|
| parent_layer_->AddChild(copy_layer_);
|
|
|
| - layer_tree()->SetRootLayer(root_);
|
| + layer_tree_host()->SetRootLayer(root_);
|
| LayerTreeHostCopyRequestTest::SetupTree();
|
| client_.set_bounds(root_->bounds());
|
| }
|
| @@ -458,7 +458,7 @@
|
| copy_layer_->SetBounds(gfx::Size(10, 10));
|
| parent_layer_->AddChild(copy_layer_);
|
|
|
| - layer_tree()->SetRootLayer(root_);
|
| + layer_tree_host()->SetRootLayer(root_);
|
| LayerTreeHostCopyRequestTest::SetupTree();
|
| client_.set_bounds(root_->bounds());
|
| }
|
| @@ -562,7 +562,7 @@
|
| copy_layer_->SetBounds(gfx::Size(10, 10));
|
| parent_layer_->AddChild(copy_layer_);
|
|
|
| - layer_tree()->SetRootLayer(root_);
|
| + layer_tree_host()->SetRootLayer(root_);
|
| LayerTreeHostCopyRequestTest::SetupTree();
|
| client_.set_bounds(root_->bounds());
|
| }
|
| @@ -612,7 +612,7 @@
|
| child_layer_->SetBounds(gfx::Size(10, 10));
|
| copy_layer_->AddChild(child_layer_);
|
|
|
| - layer_tree()->SetRootLayer(root_);
|
| + layer_tree_host()->SetRootLayer(root_);
|
| LayerTreeHostCopyRequestTest::SetupTree();
|
| client_.set_bounds(root_->bounds());
|
| }
|
| @@ -656,7 +656,7 @@
|
| copy_layer_->SetBounds(gfx::Size(10, 10));
|
| root_->AddChild(copy_layer_);
|
|
|
| - layer_tree()->SetRootLayer(root_);
|
| + layer_tree_host()->SetRootLayer(root_);
|
| LayerTreeHostCopyRequestTest::SetupTree();
|
| client_.set_bounds(root_->bounds());
|
| }
|
| @@ -674,7 +674,7 @@
|
| PostSetNeedsCommitToMainThread();
|
|
|
| // Prevent drawing.
|
| - layer_tree()->SetViewportSize(gfx::Size(0, 0));
|
| + layer_tree_host()->SetViewportSize(gfx::Size(0, 0));
|
|
|
| AddCopyRequest(copy_layer_.get());
|
| }
|
| @@ -689,7 +689,7 @@
|
| void DidCommit() override {
|
| if (layer_tree_host()->source_frame_number() == 1) {
|
| // Allow drawing.
|
| - layer_tree()->SetViewportSize(gfx::Size(root_->bounds()));
|
| + layer_tree_host()->SetViewportSize(gfx::Size(root_->bounds()));
|
|
|
| AddCopyRequest(copy_layer_.get());
|
| }
|
| @@ -745,7 +745,7 @@
|
| copy_layer_->SetBounds(gfx::Size(10, 10));
|
| root_->AddChild(copy_layer_);
|
|
|
| - layer_tree()->SetRootLayer(root_);
|
| + layer_tree_host()->SetRootLayer(root_);
|
| LayerTreeHostCopyRequestTest::SetupTree();
|
| client_.set_bounds(root_->bounds());
|
| }
|
| @@ -876,7 +876,7 @@
|
| copy_layer_->SetForceRenderSurfaceForTesting(true);
|
| root_->AddChild(copy_layer_);
|
|
|
| - layer_tree()->SetRootLayer(root_);
|
| + layer_tree_host()->SetRootLayer(root_);
|
| LayerTreeHostCopyRequestTest::SetupTree();
|
| }
|
|
|
| @@ -1037,7 +1037,7 @@
|
| copy_layer_->SetBounds(gfx::Size(10, 10));
|
| root_->AddChild(copy_layer_);
|
|
|
| - layer_tree()->SetRootLayer(root_);
|
| + layer_tree_host()->SetRootLayer(root_);
|
| LayerTreeHostCopyRequestTest::SetupTree();
|
| client_.set_bounds(root_->bounds());
|
| }
|
| @@ -1072,7 +1072,7 @@
|
| base::Unretained(this)));
|
| copy_layer_->RequestCopyOfOutput(std::move(request));
|
|
|
| - layer_tree()->SetViewportSize(gfx::Size());
|
| + layer_tree_host()->SetViewportSize(gfx::Size());
|
| break;
|
| }
|
| case 2:
|
| @@ -1083,7 +1083,8 @@
|
| case 3:
|
| EXPECT_EQ(1, callback_count_);
|
| // Allow us to draw now.
|
| - layer_tree()->SetViewportSize(layer_tree()->root_layer()->bounds());
|
| + layer_tree_host()->SetViewportSize(
|
| + layer_tree_host()->root_layer()->bounds());
|
| break;
|
| case 4:
|
| EXPECT_EQ(1, callback_count_);
|
| @@ -1113,7 +1114,7 @@
|
| copy_layer_->SetBounds(gfx::Size(10, 10));
|
| root_->AddChild(copy_layer_);
|
|
|
| - layer_tree()->SetRootLayer(root_);
|
| + layer_tree_host()->SetRootLayer(root_);
|
| LayerTreeHostCopyRequestTest::SetupTree();
|
| client_.set_bounds(root_->bounds());
|
| }
|
| @@ -1148,7 +1149,7 @@
|
| base::Unretained(this)));
|
| copy_layer_->RequestCopyOfOutput(std::move(request));
|
|
|
| - layer_tree()->SetViewportSize(gfx::Size());
|
| + layer_tree_host()->SetViewportSize(gfx::Size());
|
| break;
|
| }
|
| case 2:
|
| @@ -1185,7 +1186,7 @@
|
| root->AddChild(child_);
|
| child_->SetHideLayerAndSubtree(true);
|
|
|
| - layer_tree()->SetRootLayer(root);
|
| + layer_tree_host()->SetRootLayer(root);
|
| LayerTreeHostCopyRequestTest::SetupTree();
|
| client_.set_bounds(root->bounds());
|
| }
|
|
|