| Index: cc/trees/layer_tree_host_unittest_picture.cc
|
| diff --git a/cc/trees/layer_tree_host_unittest_picture.cc b/cc/trees/layer_tree_host_unittest_picture.cc
|
| index 9246fa16b873b9f04e855cee5d55a2f314b00865..abb0726121e92c72c530ea39674830bd26ca62db 100644
|
| --- a/cc/trees/layer_tree_host_unittest_picture.cc
|
| +++ b/cc/trees/layer_tree_host_unittest_picture.cc
|
| @@ -24,7 +24,7 @@
|
| root_picture_layer_->SetBounds(size);
|
| root->AddChild(root_picture_layer_);
|
|
|
| - layer_tree()->SetRootLayer(root);
|
| + layer_tree_host()->SetRootLayer(root);
|
| client_.set_bounds(size);
|
| }
|
|
|
| @@ -62,7 +62,7 @@
|
| scoped_refptr<FakePictureLayer> picture =
|
| FakePictureLayer::Create(&client_);
|
| picture_id2_ = picture->id();
|
| - layer_tree()->root_layer()->AddChild(picture);
|
| + layer_tree_host()->root_layer()->AddChild(picture);
|
| break;
|
| }
|
| case 4:
|
| @@ -158,7 +158,7 @@
|
| picture_->SetBounds(gfx::Size(768, 960));
|
| root->AddChild(picture_);
|
|
|
| - layer_tree()->SetRootLayer(root);
|
| + layer_tree_host()->SetRootLayer(root);
|
| LayerTreeHostPictureTest::SetupTree();
|
| }
|
|
|
| @@ -190,7 +190,7 @@
|
| // Change the picture layer's size along with the viewport, so it will
|
| // consider picking a new tile size.
|
| picture_->SetBounds(gfx::Size(768, 1056));
|
| - layer_tree()->SetViewportSize(gfx::Size(768, 1056));
|
| + layer_tree_host()->SetViewportSize(gfx::Size(768, 1056));
|
| break;
|
| case 2:
|
| EndTest();
|
| @@ -226,7 +226,7 @@
|
| // force it to have a transform node by making it scrollable.
|
| picture_->SetScrollClipLayerId(root->id());
|
|
|
| - layer_tree()->SetRootLayer(root);
|
| + layer_tree_host()->SetRootLayer(root);
|
| LayerTreeHostPictureTest::SetupTree();
|
| client_.set_bounds(picture_->bounds());
|
| }
|
| @@ -330,7 +330,7 @@
|
| picture_->SetBounds(gfx::Size(100, 100));
|
| child_->AddChild(picture_);
|
|
|
| - layer_tree()->SetRootLayer(root);
|
| + layer_tree_host()->SetRootLayer(root);
|
| LayerTreeHostPictureTest::SetupTree();
|
| }
|
|
|
| @@ -421,10 +421,10 @@
|
| picture_->SetBounds(gfx::Size(100, 100));
|
| pinch_->AddChild(picture_);
|
|
|
| - layer_tree()->RegisterViewportLayers(NULL, page_scale_layer, pinch_,
|
| - nullptr);
|
| - layer_tree()->SetPageScaleFactorAndLimits(1.f, 1.f, 4.f);
|
| - layer_tree()->SetRootLayer(root_clip);
|
| + layer_tree_host()->RegisterViewportLayers(NULL, page_scale_layer, pinch_,
|
| + nullptr);
|
| + layer_tree_host()->SetPageScaleFactorAndLimits(1.f, 1.f, 4.f);
|
| + layer_tree_host()->SetRootLayer(root_clip);
|
| LayerTreeHostPictureTest::SetupTree();
|
| client_.set_bounds(picture_->bounds());
|
| }
|
|
|