diff options
Diffstat (limited to 'webkit/tools')
-rw-r--r-- | webkit/tools/test_shell/test_shell_webkit_init.cc | 13 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_shell_webkit_init.h | 1 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_webview_delegate.cc | 8 |
3 files changed, 4 insertions, 18 deletions
diff --git a/webkit/tools/test_shell/test_shell_webkit_init.cc b/webkit/tools/test_shell/test_shell_webkit_init.cc index 647092f..5fd7761 100644 --- a/webkit/tools/test_shell/test_shell_webkit_init.cc +++ b/webkit/tools/test_shell/test_shell_webkit_init.cc @@ -300,20 +300,11 @@ TestShellWebKitInit::sharedWorkerRepository() { return NULL; } -WebKit::WebGraphicsContext3D* TestShellWebKitInit::createGraphicsContext3D() { - return new webkit::gpu::WebGraphicsContext3DInProcessImpl( - gfx::kNullPluginWindow, NULL); -} - WebKit::WebGraphicsContext3D* TestShellWebKitInit::createOffscreenGraphicsContext3D( const WebKit::WebGraphicsContext3D::Attributes& attributes) { - scoped_ptr<WebGraphicsContext3D> context( - new webkit::gpu::WebGraphicsContext3DInProcessImpl( - gfx::kNullPluginWindow, NULL)); - if (!context->initialize(attributes, NULL, false)) - return NULL; - return context.release(); + return webkit::gpu::WebGraphicsContext3DInProcessImpl::CreateForWebView( + attributes, NULL, false); } void TestShellWebKitInit::GetPlugins( diff --git a/webkit/tools/test_shell/test_shell_webkit_init.h b/webkit/tools/test_shell/test_shell_webkit_init.h index 223cdf3..b94f5c4 100644 --- a/webkit/tools/test_shell/test_shell_webkit_init.h +++ b/webkit/tools/test_shell/test_shell_webkit_init.h @@ -106,7 +106,6 @@ class TestShellWebKitInit : public webkit_glue::WebKitPlatformSupportImpl { #endif virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository() OVERRIDE; - virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D() OVERRIDE; virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( const WebKit::WebGraphicsContext3D::Attributes& attributes); diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc index 91737f6..36040cf 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( |