summaryrefslogtreecommitdiffstats
path: root/gpu/GLES2
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 01:43:00 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 01:43:00 +0000
commit8cd62f61b53e532b829b986326755404bbcaf6ad (patch)
tree4337cfb576348ecca0bb1398741189e602f43ad8 /gpu/GLES2
parentfc0d0378566936f09ead042d19b8031aebea0984 (diff)
downloadchromium_src-8cd62f61b53e532b829b986326755404bbcaf6ad.zip
chromium_src-8cd62f61b53e532b829b986326755404bbcaf6ad.tar.gz
chromium_src-8cd62f61b53e532b829b986326755404bbcaf6ad.tar.bz2
Adds MapBufferSubData and MapTexSubImage2D.
This is only the internal command buffer implementation. Connecting these functions publicly to PPAPI or whatever will happen separate from this CL. It's not clear to me where to put GL_READ_ONLY and GL_WRITE_ONLY Probably the same place we expose these 2 functions to the public. TEST=unit test BUG=none Review URL: http://codereview.chromium.org/2956005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52263 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/GLES2')
-rw-r--r--gpu/GLES2/gles2_command_buffer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gpu/GLES2/gles2_command_buffer.h b/gpu/GLES2/gles2_command_buffer.h
index 1a860b4..c36b995 100644
--- a/gpu/GLES2/gles2_command_buffer.h
+++ b/gpu/GLES2/gles2_command_buffer.h
@@ -15,6 +15,14 @@
#define PEPPER3D_SKIP_GLSL_TRANSLATION \
"pepper3d_skip_glsl_translation"
+// TODO(gman): move this somewhere else.
+#ifndef GL_READ_ONLY
+#define GL_READ_ONLY 0x88B8
+#endif
+#ifndef GL_WRITE_ONLY
+#define GL_WRITE_ONLY 0x88B9
+#endif
+
#endif // GPU_GLES2_GLES2_COMMAND_BUFFER_H_