Index: cc/layers/picture_layer_unittest.cc |
diff --git a/cc/layers/picture_layer_unittest.cc b/cc/layers/picture_layer_unittest.cc |
index a5c7ede269ee12eb914f74ea00d68e39b72ec6f3..a1ff429918c22eb5791fff6b797a0dc04772f971 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()->SetRootLayer( |
FakePictureLayerImpl::Create(host_impl.pending_tree(), 1)); |
+ host_impl.pending_tree()->BuildLayerListForTesting(); |
FakePictureLayerImpl* layer_impl = static_cast<FakePictureLayerImpl*>( |
host_impl.pending_tree()->root_layer()); |
layer->PushPropertiesTo(layer_impl); |
@@ -331,6 +332,7 @@ TEST(PictureLayerTest, InvalidateRasterWithoutUpdate) { |
host_impl.CreatePendingTree(); |
host_impl.pending_tree()->SetRootLayer( |
FakePictureLayerImpl::Create(host_impl.pending_tree(), 1)); |
+ host_impl.pending_tree()->BuildLayerListForTesting(); |
FakePictureLayerImpl* layer_impl = static_cast<FakePictureLayerImpl*>( |
host_impl.pending_tree()->root_layer()); |
layer->PushPropertiesTo(layer_impl); |