Index: content/renderer/renderer_webkitplatformsupport_impl.cc |
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc |
index 5e62910f2e5d96a9bb844e2ea8ab281b0fd25df9..1c576703292f6c85235108fee11cc57f6edcd979 100644 |
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc |
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc |
@@ -573,9 +573,10 @@ RendererWebKitPlatformSupportImpl::createOffscreenGraphicsContext3D( |
return webkit::gpu::WebGraphicsContext3DInProcessImpl::CreateForWebView( |
attributes, NULL, false); |
} else { |
- scoped_ptr<WebGraphicsContext3D> context; |
- context.reset(new WebGraphicsContext3DCommandBufferImpl()); |
- if (!context->initialize(attributes, NULL, false)) |
+ base::WeakPtr<WebGraphicsContext3DSwapBuffersClient> null_client; |
+ scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context( |
+ new WebGraphicsContext3DCommandBufferImpl(0, GURL(), null_client)); |
+ if (!context->Initialize(attributes)) |
return NULL; |
return context.release(); |
} |