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 9c5d00eddb145249b7099a090634019f6afafaf9..7cf3d73e3b0f7a4aad0bacbcdff2b4528495e88a 100644 |
--- a/cc/trees/layer_tree_host_unittest_picture.cc |
+++ b/cc/trees/layer_tree_host_unittest_picture.cc |
@@ -25,6 +25,7 @@ class LayerTreeHostPictureTest : public LayerTreeTest { |
root->AddChild(root_picture_layer_); |
layer_tree_host()->SetRootLayer(root); |
+ client_.set_bounds(size); |
} |
scoped_refptr<FakePictureLayer> root_picture_layer_; |
@@ -139,7 +140,7 @@ class LayerTreeHostPictureTestResizeViewportWithGpuRaster |
void SetupTree() override { |
scoped_refptr<Layer> root = Layer::Create(layer_settings()); |
root->SetBounds(gfx::Size(768, 960)); |
- |
+ client_.set_bounds(root->bounds()); |
client_.set_fill_with_nonsolid_color(true); |
picture_ = FakePictureLayer::Create(layer_settings(), &client_); |
picture_->SetBounds(gfx::Size(768, 960)); |
@@ -202,7 +203,6 @@ class LayerTreeHostPictureTestChangeLiveTilesRectWithRecycleTree |
scoped_refptr<Layer> root = Layer::Create(layer_settings()); |
root->SetBounds(gfx::Size(100, 100)); |
- |
// The layer is big enough that the live tiles rect won't cover the full |
// layer. |
client_.set_fill_with_nonsolid_color(true); |
@@ -216,6 +216,7 @@ class LayerTreeHostPictureTestChangeLiveTilesRectWithRecycleTree |
layer_tree_host()->SetRootLayer(root); |
LayerTreeHostPictureTest::SetupTree(); |
+ client_.set_bounds(picture_->bounds()); |
} |
void BeginTest() override { PostSetNeedsCommitToMainThread(); } |
@@ -308,6 +309,7 @@ class LayerTreeHostPictureTestRSLLMembership : public LayerTreeHostPictureTest { |
void SetupTree() override { |
scoped_refptr<Layer> root = Layer::Create(layer_settings()); |
root->SetBounds(gfx::Size(100, 100)); |
+ client_.set_bounds(root->bounds()); |
child_ = Layer::Create(layer_settings()); |
root->AddChild(child_); |
@@ -414,6 +416,7 @@ class LayerTreeHostPictureTestRSLLMembershipWithScale |
layer_tree_host()->SetPageScaleFactorAndLimits(1.f, 1.f, 4.f); |
layer_tree_host()->SetRootLayer(root); |
LayerTreeHostPictureTest::SetupTree(); |
+ client_.set_bounds(picture_->bounds()); |
} |
void InitializeSettings(LayerTreeSettings* settings) override { |