Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: third_party/khronos/GLES2/gl2ext.h

Issue 10543125: gpu: Add support for GLX_EXT_texture_from_pixmap extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove .gitmodules change. Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698