Index: gpu/GLES2/gl2extchromium.h |
diff --git a/gpu/GLES2/gl2extchromium.h b/gpu/GLES2/gl2extchromium.h |
index 9193467c4e82e07dc2a31106d46be79e916a7aad..d23191cce04e66449fee4abd0a7b32876a55d044 100644 |
--- a/gpu/GLES2/gl2extchromium.h |
+++ b/gpu/GLES2/gl2extchromium.h |
@@ -94,6 +94,39 @@ typedef GLboolean (GL_APIENTRY PFNGLUNMAPBUFFERCHROMIUM) (GLuint target); |
#endif |
#endif /* GL_CHROMIUM_pixel_transfer_buffer_object */ |
+/* GL_CHROMIUM_map_image */ |
+#ifndef GL_CHROMIUM_map_image |
+#define GL_CHROMIUM_map_image 1 |
+ |
+#ifndef GL_IMAGE_ROWBYTES_CHROMIUM |
+#define GL_IMAGE_ROWBYTES_CHROMIUM 0x78F0 |
+#endif |
+ |
+#ifndef GL_READ_WRITE |
+#define GL_READ_WRITE 0x88BA |
+#endif |
+ |
+#ifdef GL_GLEXT_PROTOTYPES |
+GL_APICALL GLuint GL_APIENTRY glCreateImageCHROMIUM( |
+ GLsizei width, GLsizei height, GLenum internalformat); |
+GL_APICALL void GL_APIENTRY glDestroyImageCHROMIUM(GLuint image_id); |
+GL_APICALL void GL_APIENTRY glGetImageParameterivCHROMIUM( |
+ GLuint image_id, GLenum pname, GLint* params); |
+GL_APICALL void* GL_APIENTRY glMapImageCHROMIUM(GLuint image_id, GLenum access); |
+GL_APICALL void GL_APIENTRY glUnmapImageCHROMIUM(GLuint image_id); |
+#endif |
+typedef GLuint (GL_APIENTRYP PFNGLCREATEIMAGECHROMIUMPROC) ( |
+ GLsizei width, GLsizei height, GLenum internalformat); |
+typedef void ( |
+ GL_APIENTRYP PFNGLDESTROYIMAGECHROMIUMPROC) (GLuint image_id); |
+typedef void ( |
+ GL_APIENTRYP PFNGLGETIMAGEPARAMETERIVCHROMIUMPROC) ( |
+ GLuint image_id, GLenum pname, GLint* params); |
+typedef void* (GL_APIENTRYP PFNGLMAPIMAGECHROMIUMPROC) ( |
+ GLuint image_id, GLenum access); |
+typedef void (GL_APIENTRYP PFNGLUNMAPIMAGECHROMIUMPROC) (GLuint image_id); |
+#endif /* GL_CHROMIUM_map_image */ |
+ |
/* GL_CHROMIUM_map_sub */ |
#ifndef GL_CHROMIUM_map_sub |
#define GL_CHROMIUM_map_sub 1 |