Index: third_party/khronos/GLES2/gl2ext.h |
diff --git a/third_party/khronos/GLES2/gl2ext.h b/third_party/khronos/GLES2/gl2ext.h |
index ee0da0309bc546c63cea8417f1b102696e6db02c..f51fff4d62893ce68e1d584fcd697a662e8da682 100644 |
--- a/third_party/khronos/GLES2/gl2ext.h |
+++ b/third_party/khronos/GLES2/gl2ext.h |
@@ -2028,6 +2028,23 @@ typedef void (GL_APIENTRYP PFNGLBINDUNIFORMLOCATIONCHROMIUM) (GLuint program, GL |
#endif |
#endif |
+/* GL_CHROMIUM_texture_from_pixmap */ |
+/* Exposes the GLX-specfic glXBindTexImageEXT entry point as a |
+ * Chromium extension in the cross-platform API. Binds the Pixmap with |
+ * the given ID (an X11 Pixmap) to the texture bound to the given target. |
+ */ |
+#ifndef GL_CHROMIUM_texture_from_pixmap |
+#define GL_CHROMIUM_texture_from_pixmap 1 |
+#ifdef GL_GLEXT_PROTOTYPES |
+#define glTexImagePixmap2DCHROMIUM GLES2_GET_FUN(TexImagePixmap2DCHROMIUM) |
+#if !defined(GLES2_USE_CPP_BINDINGS) |
+GL_APICALL void GL_APIENTRY glTexImagePixmap2DCHROMIUM (GLenum target, GLuint pixmapId); |
+#endif |
+#else |
+typedef void (GL_APIENTRYP PFNGLTEXIMAGEPIXMAP2DCHROMIUM) (GLenum target, GLuint pixmapId); |
+#endif |
+#endif |
+ |
#ifdef __cplusplus |
} |
#endif |