Index: webkit/tools/test_shell/test_webview_delegate.cc |
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc |
index 91737f677e53bef5178a469bb1a035ed1b7c3357..36040cf864fb91333eec4c062dda5041198da874 100644 |
--- a/webkit/tools/test_shell/test_webview_delegate.cc |
+++ b/webkit/tools/test_shell/test_webview_delegate.cc |
@@ -340,12 +340,8 @@ WebGraphicsContext3D* TestWebViewDelegate::createGraphicsContext3D( |
bool direct) { |
if (!shell_->webView()) |
return NULL; |
- scoped_ptr<WebGraphicsContext3D> context( |
- new webkit::gpu::WebGraphicsContext3DInProcessImpl( |
- gfx::kNullPluginWindow, NULL)); |
- if (!context->initialize(attributes, shell_->webView(), direct)) |
- return NULL; |
- return context.release(); |
+ return webkit::gpu::WebGraphicsContext3DInProcessImpl::CreateForWebView( |
+ attributes, shell_->webView(), direct); |
} |
void TestWebViewDelegate::didAddMessageToConsole( |