summaryrefslogtreecommitdiffstats
path: root/gpu/GLES2
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-17 19:24:18 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-17 19:24:18 +0000
commitb1d2dcb6ca00ca1aab7017702a882f9df9eeaa5f (patch)
tree724b4744870f078601c0fef591e538fcc28b22bb /gpu/GLES2
parent8d84301ae5bbb424b8c3e0f22c69841519324f10 (diff)
downloadchromium_src-b1d2dcb6ca00ca1aab7017702a882f9df9eeaa5f.zip
chromium_src-b1d2dcb6ca00ca1aab7017702a882f9df9eeaa5f.tar.gz
chromium_src-b1d2dcb6ca00ca1aab7017702a882f9df9eeaa5f.tar.bz2
Makes shader translation a runtime switch.
For WebGL the shader translation is off. For Pepper and other processes it is on. This will be removed and the tranlator will always be on at some point in the future TEST=More conformance tests pass, manually ran WebGL demos in Chrome. BUG=none Review URL: http://codereview.chromium.org/2127001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47441 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/GLES2')
-rw-r--r--gpu/GLES2/gles2_command_buffer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gpu/GLES2/gles2_command_buffer.h b/gpu/GLES2/gles2_command_buffer.h
index 137cd78..1a860b4 100644
--- a/gpu/GLES2/gles2_command_buffer.h
+++ b/gpu/GLES2/gles2_command_buffer.h
@@ -9,7 +9,11 @@
#define GPU_GLES2_GLES2_COMMAND_BUFFER_H_
// constants for CommandBufferEnable command.
-#define GLES2_ALLOW_BUFFERS_ON_MULTIPLE_TARGETS 0x0001
+#define PEPPER3D_ALLOW_BUFFERS_ON_MULTIPLE_TARGETS \
+ "pepper3d_allow_buffers_on_multiple_targets"
+// TODO(gman): remove this
+#define PEPPER3D_SKIP_GLSL_TRANSLATION \
+ "pepper3d_skip_glsl_translation"
#endif // GPU_GLES2_GLES2_COMMAND_BUFFER_H_