diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-06 00:22:33 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-06 00:22:33 +0000 |
commit | abd2ba8736f2f07ba3de0fe5a2c842f09294149f (patch) | |
tree | f3cd783eb1154815d93fcfef3f385e072615a877 /webkit/support/webkit_support.cc | |
parent | ea2fde1e09309325f02f4c8b3e682113a31580c6 (diff) | |
download | chromium_src-abd2ba8736f2f07ba3de0fe5a2c842f09294149f.zip chromium_src-abd2ba8736f2f07ba3de0fe5a2c842f09294149f.tar.gz chromium_src-abd2ba8736f2f07ba3de0fe5a2c842f09294149f.tar.bz2 |
Make the GraphicsContext3D implementation selectable
This makes it possible to select different GraphicsContext3D
implementations the support for DRT.
Will update DRT so it's possible to choose.
webgraphicscontext3d_in_process_command_buffer_impl is currently just a copy of webgraphicscontext3d_in_process_impl.
Once this and the DRT stuff is checked in I can refactor that class to actually use the command buffer in process. Later we can see about running it out of process.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/6932051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84365 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support/webkit_support.cc')
-rw-r--r-- | webkit/support/webkit_support.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc index 4ef59f5..520b988 100644 --- a/webkit/support/webkit_support.cc +++ b/webkit/support/webkit_support.cc @@ -211,6 +211,9 @@ class TaskAdaptorHolder : public CancelableTask { scoped_ptr<webkit_support::TaskAdaptor> adaptor_; }; +webkit_support::GraphicsContext3DImplementation + g_graphics_context_3d_implementation = webkit_support::IN_PROCESS; + } // namespace namespace webkit_support { @@ -330,6 +333,14 @@ void SetUpGLBindings(GLBindingPreferences bindingPref) { } } +void SetGraphicsContext3DImplementation(GraphicsContext3DImplementation impl) { + g_graphics_context_3d_implementation = impl; +} + +GraphicsContext3DImplementation GetGraphicsContext3DImplementation() { + return g_graphics_context_3d_implementation; +} + void RegisterMockedURL(const WebKit::WebURL& url, const WebKit::WebURLResponse& response, const WebKit::WebString& file_path) { |