summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_webkitclient_impl.cc
diff options
context:
space:
mode:
authorvangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-13 22:03:07 +0000
committervangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-13 22:03:07 +0000
commit7eb3052367670de882b23268a5ee5f3c4414344f (patch)
tree051df94d417d97c8780b60a46743a8c35c672475 /chrome/renderer/renderer_webkitclient_impl.cc
parent4dc955eb16d38e575aa787ff5b699f1ed6102bf8 (diff)
downloadchromium_src-7eb3052367670de882b23268a5ee5f3c4414344f.zip
chromium_src-7eb3052367670de882b23268a5ee5f3c4414344f.tar.gz
chromium_src-7eb3052367670de882b23268a5ee5f3c4414344f.tar.bz2
Adding a method to RendererWebKitClientImpl to create a GLES2Context.
BUG=43911 Review URL: http://codereview.chromium.org/2023008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47199 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_webkitclient_impl.cc')
-rw-r--r--chrome/renderer/renderer_webkitclient_impl.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_webkitclient_impl.cc b/chrome/renderer/renderer_webkitclient_impl.cc
index f9b5ffc..a1e8a30 100644
--- a/chrome/renderer/renderer_webkitclient_impl.cc
+++ b/chrome/renderer/renderer_webkitclient_impl.cc
@@ -23,6 +23,7 @@
#include "chrome/renderer/render_view.h"
#include "chrome/renderer/renderer_webstoragenamespace_impl.h"
#include "chrome/renderer/visitedlink_slave.h"
+#include "chrome/renderer/webgles2context_impl.h"
#include "chrome/renderer/webgraphicscontext3d_command_buffer_impl.h"
#include "googleurl/src/gurl.h"
#include "ipc/ipc_sync_message_filter.h"
@@ -334,6 +335,15 @@ RendererWebKitClientImpl::createGraphicsContext3D() {
}
}
+WebKit::WebGLES2Context*
+RendererWebKitClientImpl::createGLES2Context() {
+#if defined(ENABLE_GPU)
+ return new WebGLES2ContextImpl();
+#else
+ return NULL;
+#endif
+}
+
//------------------------------------------------------------------------------
WebKit::WebString RendererWebKitClientImpl::signedPublicKeyAndChallengeString(