Index: cc/trees/layer_tree_host_common_unittest.cc |
diff --git a/cc/trees/layer_tree_host_common_unittest.cc b/cc/trees/layer_tree_host_common_unittest.cc |
index 99dc89cffd6956f5b8b0fedc12cc34feb7dedaf7..ac3f42f193336ba94466f7df2fe399766a6c465e 100644 |
--- a/cc/trees/layer_tree_host_common_unittest.cc |
+++ b/cc/trees/layer_tree_host_common_unittest.cc |
@@ -2670,6 +2670,7 @@ TEST_F(LayerTreeHostCommonTest, |
FakeImplProxy proxy; |
TestSharedBitmapManager shared_bitmap_manager; |
TestTaskGraphRunner task_graph_runner; |
+ scoped_ptr<OutputSurface> output_surface = FakeOutputSurface::Create3d(); |
FakeLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager, |
&task_graph_runner); |
scoped_ptr<LayerImpl> root = LayerImpl::Create(host_impl.active_tree(), 1); |
@@ -2709,7 +2710,7 @@ TEST_F(LayerTreeHostCommonTest, |
root->AddChild(child.Pass()); |
root->AddChild(occluding_child.Pass()); |
host_impl.active_tree()->SetRootLayer(root.Pass()); |
- host_impl.InitializeRenderer(FakeOutputSurface::Create3d()); |
+ host_impl.InitializeRenderer(output_surface.get()); |
bool update_lcd_text = false; |
host_impl.active_tree()->UpdateDrawProperties(update_lcd_text); |