summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_shell_webkit_init.cc
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-03 23:13:57 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-03 23:13:57 +0000
commit56200f01b42fc298eb187eac78b82c85eacedac0 (patch)
tree2fdbc217ace5744c3e5afd1c9f3fa3aa25df5cd1 /webkit/tools/test_shell/test_shell_webkit_init.cc
parent4a3ce97a93e8b43082c4ae243ac8127c92890b28 (diff)
downloadchromium_src-56200f01b42fc298eb187eac78b82c85eacedac0.zip
chromium_src-56200f01b42fc298eb187eac78b82c85eacedac0.tar.gz
chromium_src-56200f01b42fc298eb187eac78b82c85eacedac0.tar.bz2
Refactor WebGraphicsContext3DInProcess and TestWebGraphicsContext3D
This needs https://bugs.webkit.org/show_bug.cgi?id=76593 to land first. This also removes WebKitPlatformSupport::createGraphicsContext3D implementations that are not called any more after the above. BUG=None TEST=chrome with accelerated content, DRT, test_shell_tests Review URL: http://codereview.chromium.org/9226036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120431 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_shell_webkit_init.cc')
-rw-r--r--webkit/tools/test_shell/test_shell_webkit_init.cc13
1 files changed, 2 insertions, 11 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(