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

Unified Diff: cc/trees/layer_tree_host_unittest_picture.cc

Issue 2661523003: cc: Merge LayerTree into the LayerTreeHost. (Closed)
Patch Set: auto Created 3 years, 11 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/trees/layer_tree_host_unittest_occlusion.cc ('k') | cc/trees/layer_tree_host_unittest_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bb13a32b06e8f9435189e513b23655e71fd108a6..cbdd64173b992ac97242a338b057a72620366e81 100644
--- a/cc/trees/layer_tree_host_unittest_picture.cc
+++ b/cc/trees/layer_tree_host_unittest_picture.cc
@@ -24,7 +24,7 @@ class LayerTreeHostPictureTest : public LayerTreeTest {
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 @@ class LayerTreeHostPictureTestTwinLayer
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 @@ class LayerTreeHostPictureTestResizeViewportWithGpuRaster
picture_->SetBounds(gfx::Size(768, 960));
root->AddChild(picture_);
- layer_tree()->SetRootLayer(root);
+ layer_tree_host()->SetRootLayer(root);
LayerTreeHostPictureTest::SetupTree();
}
@@ -190,7 +190,7 @@ class LayerTreeHostPictureTestResizeViewportWithGpuRaster
// 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 @@ class LayerTreeHostPictureTestChangeLiveTilesRectWithRecycleTree
// 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());
}
@@ -338,7 +338,7 @@ class LayerTreeHostPictureTestRSLLMembership : public LayerTreeHostPictureTest {
picture_->SetBounds(gfx::Size(100, 100));
child_->AddChild(picture_);
- layer_tree()->SetRootLayer(root);
+ layer_tree_host()->SetRootLayer(root);
LayerTreeHostPictureTest::SetupTree();
}
@@ -429,10 +429,10 @@ class LayerTreeHostPictureTestRSLLMembershipWithScale
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());
}
@@ -592,8 +592,8 @@ class LayerTreeHostPictureTestForceRecalculateScales
normal_layer_->SetBounds(size);
root->AddChild(normal_layer_);
- layer_tree()->SetRootLayer(root);
- layer_tree()->SetViewportSize(size);
+ layer_tree_host()->SetRootLayer(root);
+ layer_tree_host()->SetViewportSize(size);
client_.set_fill_with_nonsolid_color(true);
client_.set_bounds(size);
@@ -658,13 +658,13 @@ class LayerTreeHostPictureTestForceRecalculateScales
void ScaleRootUp() {
gfx::Transform transform;
transform.Scale(2, 2);
- layer_tree_host()->GetLayerTree()->root_layer()->SetTransform(transform);
+ layer_tree_host()->root_layer()->SetTransform(transform);
}
void ScaleRootUpAndRecalculateScales() {
gfx::Transform transform;
transform.Scale(4, 4);
- layer_tree_host()->GetLayerTree()->root_layer()->SetTransform(transform);
+ layer_tree_host()->root_layer()->SetTransform(transform);
layer_tree_host()->SetNeedsRecalculateRasterScales();
}
« no previous file with comments | « cc/trees/layer_tree_host_unittest_occlusion.cc ('k') | cc/trees/layer_tree_host_unittest_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698