Index: cc/test/layer_tree_pixel_test.cc |
diff --git a/cc/test/layer_tree_pixel_test.cc b/cc/test/layer_tree_pixel_test.cc |
index 31d30a4b676ffa627c501a922a00f0d735234818..ef8cc62e296b6d599d06cddf827271dfed02ea42 100644 |
--- a/cc/test/layer_tree_pixel_test.cc |
+++ b/cc/test/layer_tree_pixel_test.cc |
@@ -52,7 +52,7 @@ scoped_ptr<OutputSurface> LayerTreePixelTest::CreateOutputSurface( |
} |
case PIXEL_TEST_GL: { |
output_surface = make_scoped_ptr( |
- new PixelTestOutputSurface(new TestInProcessContextProvider)); |
+ new PixelTestOutputSurface(CreteTestContextProvider())); |
break; |
} |
} |
@@ -83,6 +83,10 @@ void LayerTreePixelTest::CommitCompleteOnThread(LayerTreeHostImpl* impl) { |
EXPECT_EQ(viewport.ToString(), impl->DeviceViewport().ToString()); |
} |
+scoped_refptr<ContextProvider> LayerTreePixelTest::CreteTestContextProvider() { |
+ return new TestInProcessContextProvider(); |
+} |
+ |
scoped_ptr<CopyOutputRequest> LayerTreePixelTest::CreateCopyOutputRequest() { |
return CopyOutputRequest::CreateBitmapRequest( |
base::Bind(&LayerTreePixelTest::ReadbackResult, base::Unretained(this))); |