Index: cc/layers/picture_layer_impl_unittest.cc |
diff --git a/cc/layers/picture_layer_impl_unittest.cc b/cc/layers/picture_layer_impl_unittest.cc |
index 8ccd54f37c3e02411aafee13f56dfc524b080aa4..fd5a0185504208e4e977a309c3326dcb4939e985 100644 |
--- a/cc/layers/picture_layer_impl_unittest.cc |
+++ b/cc/layers/picture_layer_impl_unittest.cc |
@@ -137,6 +137,7 @@ class PictureLayerImplTest : public testing::Test { |
FakePictureLayerImpl::CreateWithPile(pending_tree, id_, pile); |
pending_layer->SetDrawsContent(true); |
pending_tree->SetRootLayer(pending_layer.PassAs<LayerImpl>()); |
+ pending_tree->root_layer()->CreateRenderSurface(); |
pending_layer_ = static_cast<FakePictureLayerImpl*>( |
host_impl_.pending_tree()->LayerById(id_)); |
@@ -3452,7 +3453,7 @@ TEST_F(PictureLayerImplTest, UpdateTilesForMasksWithNoVisibleContent) { |
FakePictureLayerImpl* pending_mask_content = mask.get(); |
layer_with_mask->SetMaskLayer(mask.PassAs<LayerImpl>()); |
- |
+ layer_with_mask->CreateRenderSurface(); |
scoped_ptr<FakePictureLayerImpl> child_of_layer_with_mask = |
FakePictureLayerImpl::Create(host_impl_.pending_tree(), 4); |
@@ -3463,7 +3464,7 @@ TEST_F(PictureLayerImplTest, UpdateTilesForMasksWithNoVisibleContent) { |
layer_with_mask->AddChild(child_of_layer_with_mask.PassAs<LayerImpl>()); |
root->AddChild(layer_with_mask.PassAs<LayerImpl>()); |
- |
+ root->CreateRenderSurface(); |
host_impl_.pending_tree()->SetRootLayer(root.Pass()); |
EXPECT_FALSE(pending_mask_content->tilings()); |