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 b948302cc4b07d7801f0b2184c93929ad151041c..dd7eedf25e19b18bf9dc1ad205836d861a961bf0 100644 |
--- a/cc/test/layer_tree_pixel_test.cc |
+++ b/cc/test/layer_tree_pixel_test.cc |
@@ -50,11 +50,9 @@ scoped_ptr<OutputSurface> LayerTreePixelTest::CreateOutputSurface() { |
using WebKit::WebGraphicsContext3D; |
using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl; |
- scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context3d( |
+ output_surface = make_scoped_ptr(new PixelTestOutputSurface( |
WebGraphicsContext3DInProcessCommandBufferImpl:: |
- CreateOffscreenContext(WebGraphicsContext3D::Attributes())); |
- output_surface = make_scoped_ptr( |
- new PixelTestOutputSurface(context3d.PassAs<WebGraphicsContext3D>())); |
+ CreateOffscreenContext(WebGraphicsContext3D::Attributes()))); |
break; |
} |
} |
@@ -189,7 +187,7 @@ scoped_ptr<SkBitmap> LayerTreePixelTest::CopyTextureMailboxToBitmap( |
return scoped_ptr<SkBitmap>(); |
using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl; |
- scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context3d( |
+ scoped_ptr<WebKit::WebGraphicsContext3D> context3d( |
WebGraphicsContext3DInProcessCommandBufferImpl::CreateOffscreenContext( |
WebKit::WebGraphicsContext3D::Attributes())); |