diff options
Diffstat (limited to 'cc/test/layer_tree_test.cc')
-rw-r--r-- | cc/test/layer_tree_test.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc index b8c5366..b6f47ab 100644 --- a/cc/test/layer_tree_test.cc +++ b/cc/test/layer_tree_test.cc @@ -589,9 +589,13 @@ void LayerTreeTest::RunTest(bool threaded, } scoped_ptr<OutputSurface> LayerTreeTest::CreateOutputSurface() { + scoped_ptr<FakeOutputSurface> output_surface; if (delegating_renderer_) - return FakeOutputSurface::CreateDelegating3d().PassAs<OutputSurface>(); - return FakeOutputSurface::Create3d().PassAs<OutputSurface>(); + output_surface = FakeOutputSurface::CreateDelegating3d(); + else + output_surface = FakeOutputSurface::Create3d(); + output_surface_ = output_surface.get(); + return output_surface.PassAs<OutputSurface>(); } scoped_refptr<cc::ContextProvider> LayerTreeTest:: |