Index: webkit/tools/test_shell/test_shell_webkit_init.cc |
diff --git a/webkit/tools/test_shell/test_shell_webkit_init.cc b/webkit/tools/test_shell/test_shell_webkit_init.cc |
index 297b983a6e2b954cdbaa000bd7aa650ac340b8a5..c8b981dc1ebfe5efe61afcce99d2013af1fe532d 100644 |
--- a/webkit/tools/test_shell/test_shell_webkit_init.cc |
+++ b/webkit/tools/test_shell/test_shell_webkit_init.cc |
@@ -305,6 +305,17 @@ WebKit::WebGraphicsContext3D* TestShellWebKitInit::createGraphicsContext3D() { |
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(); |
+} |
+ |
void TestShellWebKitInit::GetPlugins( |
bool refresh, std::vector<webkit::WebPluginInfo>* plugins) { |
if (refresh) |