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 5c4f652edd22355f81adb5791cc1d887bf2b4dda..29c7f975f2c58168735f5e0b2112c19a404b3a14 100644 |
--- a/webkit/tools/test_shell/test_webview_delegate.cc |
+++ b/webkit/tools/test_shell/test_webview_delegate.cc |
@@ -65,6 +65,7 @@ |
#include "webkit/glue/webpreferences.h" |
#include "webkit/glue/weburlrequest_extradata_impl.h" |
#include "webkit/glue/window_open_disposition.h" |
+#include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" |
#include "webkit/media/webmediaplayer_impl.h" |
#include "webkit/plugins/npapi/webplugin_impl.h" |
#include "webkit/plugins/npapi/plugin_list.h" |
@@ -97,6 +98,7 @@ using WebKit::WebFileSystem; |
using WebKit::WebFileSystemCallbacks; |
using WebKit::WebFormElement; |
using WebKit::WebFrame; |
+using WebKit::WebGraphicsContext3D; |
using WebKit::WebHistoryItem; |
using WebKit::WebImage; |
using WebKit::WebMediaPlayer; |
@@ -336,6 +338,19 @@ WebStorageNamespace* TestWebViewDelegate::createSessionStorageNamespace( |
WebStorageNamespace::m_sessionStorageQuota); |
} |
+WebGraphicsContext3D* TestWebViewDelegate::createGraphicsContext3D( |
+ WebGraphicsContext3D::Attributes attributes, |
+ 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(); |
+} |
+ |
void TestWebViewDelegate::didAddMessageToConsole( |
const WebConsoleMessage& message, const WebString& source_name, |
unsigned source_line) { |