| Index: cc/trees/layer_tree_host_unittest_damage.cc
|
| diff --git a/cc/trees/layer_tree_host_unittest_damage.cc b/cc/trees/layer_tree_host_unittest_damage.cc
|
| index 825d03d12e7f6333df628006d0b5e4c8e41c4340..d8bde904890b3e05be745e62a2754f57c684d614 100644
|
| --- a/cc/trees/layer_tree_host_unittest_damage.cc
|
| +++ b/cc/trees/layer_tree_host_unittest_damage.cc
|
| @@ -30,7 +30,7 @@
|
| scoped_refptr<FakePictureLayer> root = FakePictureLayer::Create(&client_);
|
| root->SetBounds(gfx::Size(10, 10));
|
|
|
| - layer_tree()->SetRootLayer(root);
|
| + layer_tree_host()->SetRootLayer(root);
|
| LayerTreeHostDamageTest::SetupTree();
|
| client_.set_bounds(root->bounds());
|
| }
|
| @@ -92,7 +92,7 @@
|
| scoped_refptr<FakePictureLayer> root = FakePictureLayer::Create(&client_);
|
| root->SetBounds(gfx::Size(10, 10));
|
|
|
| - layer_tree()->SetRootLayer(root);
|
| + layer_tree_host()->SetRootLayer(root);
|
| LayerTreeHostDamageTest::SetupTree();
|
| client_.set_bounds(root->bounds());
|
| }
|
| @@ -105,7 +105,7 @@
|
| void DidCommitAndDrawFrame() override {
|
| switch (layer_tree_host()->source_frame_number()) {
|
| case 1:
|
| - layer_tree()->SetViewportSize(gfx::Size(15, 15));
|
| + layer_tree_host()->SetViewportSize(gfx::Size(15, 15));
|
| break;
|
| }
|
| }
|
| @@ -161,7 +161,7 @@
|
| content_->SetBounds(gfx::Size(2000, 100));
|
| root->AddChild(content_);
|
|
|
| - layer_tree()->SetRootLayer(root);
|
| + layer_tree_host()->SetRootLayer(root);
|
| LayerTreeHostDamageTest::SetupTree();
|
| client_.set_bounds(root->bounds());
|
| }
|
| @@ -211,7 +211,7 @@
|
| case 2:
|
| // Cause visible damage.
|
| content_->SetNeedsDisplayRect(
|
| - gfx::Rect(layer_tree()->device_viewport_size()));
|
| + gfx::Rect(layer_tree_host()->device_viewport_size()));
|
| break;
|
| case 3:
|
| // Cause non-visible damage.
|
| @@ -246,7 +246,7 @@
|
| child_->SetBounds(gfx::Size(30, 30));
|
|
|
| root_->AddChild(child_);
|
| - layer_tree()->SetRootLayer(root_);
|
| + layer_tree_host()->SetRootLayer(root_);
|
| LayerTreeHostDamageTest::SetupTree();
|
| client_.set_bounds(root_->bounds());
|
| }
|
| @@ -332,7 +332,7 @@
|
| scoped_refptr<Layer> root_layer = Layer::Create();
|
| root_layer->SetBounds(gfx::Size(400, 400));
|
| root_layer->SetMasksToBounds(true);
|
| - layer_tree()->SetRootLayer(root_layer);
|
| + layer_tree_host()->SetRootLayer(root_layer);
|
|
|
| scoped_refptr<Layer> scroll_clip_layer = Layer::Create();
|
| content_layer_ = FakePictureLayer::Create(&client_);
|
| @@ -442,7 +442,7 @@
|
|
|
| void ResizeScrollLayer() {
|
| EXPECT_EQ(3, num_draws_);
|
| - Layer* root = layer_tree()->root_layer();
|
| + Layer* root = layer_tree_host()->root_layer();
|
| content_layer_->SetBounds(
|
| gfx::Size(root->bounds().width() + 60, root->bounds().height() + 100));
|
| }
|
|
|