diff options
author | vangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-13 22:03:07 +0000 |
---|---|---|
committer | vangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-13 22:03:07 +0000 |
commit | 7eb3052367670de882b23268a5ee5f3c4414344f (patch) | |
tree | 051df94d417d97c8780b60a46743a8c35c672475 /chrome | |
parent | 4dc955eb16d38e575aa787ff5b699f1ed6102bf8 (diff) | |
download | chromium_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')
-rw-r--r-- | chrome/renderer/renderer_webkitclient_impl.cc | 10 | ||||
-rw-r--r-- | chrome/renderer/renderer_webkitclient_impl.h | 1 |
2 files changed, 11 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( diff --git a/chrome/renderer/renderer_webkitclient_impl.h b/chrome/renderer/renderer_webkitclient_impl.h index 7e7de1e..adcad69 100644 --- a/chrome/renderer/renderer_webkitclient_impl.h +++ b/chrome/renderer/renderer_webkitclient_impl.h @@ -64,6 +64,7 @@ class RendererWebKitClientImpl : public webkit_glue::WebKitClientImpl { const WebKit::WebURL& url); virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository(); virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D(); + virtual WebKit::WebGLES2Context* createGLES2Context(); private: class MimeRegistry : public webkit_glue::SimpleWebMimeRegistryImpl { |