Index: cc/layers/picture_layer_unittest.cc |
diff --git a/cc/layers/picture_layer_unittest.cc b/cc/layers/picture_layer_unittest.cc |
index 2d5874c1485396b3271680b32224b8db0b1fd514..f8e9eec3c895e97ed9b869bafc1c7b44041d0ec0 100644 |
--- a/cc/layers/picture_layer_unittest.cc |
+++ b/cc/layers/picture_layer_unittest.cc |
@@ -289,6 +289,7 @@ TEST(PictureLayerTest, InvalidateRasterAfterUpdate) { |
host_impl.CreatePendingTree(); |
host_impl.pending_tree()->SetRootLayerForTesting( |
FakePictureLayerImpl::Create(host_impl.pending_tree(), 1)); |
+ host_impl.pending_tree()->BuildLayerListForTesting(); |
FakePictureLayerImpl* layer_impl = static_cast<FakePictureLayerImpl*>( |
host_impl.pending_tree()->root_layer_for_testing()); |
layer->PushPropertiesTo(layer_impl); |
@@ -331,6 +332,7 @@ TEST(PictureLayerTest, InvalidateRasterWithoutUpdate) { |
host_impl.CreatePendingTree(); |
host_impl.pending_tree()->SetRootLayerForTesting( |
FakePictureLayerImpl::Create(host_impl.pending_tree(), 1)); |
+ host_impl.pending_tree()->BuildLayerListForTesting(); |
FakePictureLayerImpl* layer_impl = static_cast<FakePictureLayerImpl*>( |
host_impl.pending_tree()->root_layer_for_testing()); |
layer->PushPropertiesTo(layer_impl); |