diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-02 00:23:37 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-02 00:23:37 +0000 |
commit | 183aa804ea52374ae1bca809516de677d94a6d95 (patch) | |
tree | bead5b668b4f08546d59591e6fa601b1874d22bf /chrome/renderer | |
parent | 385495be3c1fb10495f3a3ad2f4b47062e91ee77 (diff) | |
download | chromium_src-183aa804ea52374ae1bca809516de677d94a6d95.zip chromium_src-183aa804ea52374ae1bca809516de677d94a6d95.tar.gz chromium_src-183aa804ea52374ae1bca809516de677d94a6d95.tar.bz2 |
Adds a temporary switch --enable-glsl-translator which
turns on the OpenGL ES GLSL -> OpenGL GLSL translator
in WebGL.
This will be removed in a few weeks it becomes the default
but we need it now for testing.
TEST=hand tested
BUG=none
Review URL: http://codereview.chromium.org/2815008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51466 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc index bffb690..56c6392 100644 --- a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc +++ b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc @@ -63,7 +63,10 @@ bool WebGraphicsContext3DCommandBufferImpl::initialize( if (!context_) return false; // TODO(gman): Remove this. - DisableShaderTranslation(context_); + const CommandLine& command_line = *CommandLine::ForCurrentProcess(); + if (!command_line.HasSwitch(switches::kEnableGLSLTranslator)) { + DisableShaderTranslation(context_); + } return true; } |