summaryrefslogtreecommitdiffstats
path: root/gpu/GLES2
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-24 00:00:40 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-24 00:00:40 +0000
commit1e6f58db132a6e641299f7cb2502dbf88a06b454 (patch)
tree75020e23a3df5fa5162494850e93c0af8a3ffa00 /gpu/GLES2
parent5aea18697928ef225433a2c0a334f192fc4eb8e1 (diff)
downloadchromium_src-1e6f58db132a6e641299f7cb2502dbf88a06b454.zip
chromium_src-1e6f58db132a6e641299f7cb2502dbf88a06b454.tar.gz
chromium_src-1e6f58db132a6e641299f7cb2502dbf88a06b454.tar.bz2
Implement latch system to help with GPU compositing flow control.
TEST=unit tests BUG=none Review URL: http://codereview.chromium.org/6719014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79218 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/GLES2')
-rw-r--r--gpu/GLES2/gl2ext.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gpu/GLES2/gl2ext.h b/gpu/GLES2/gl2ext.h
index 4a1f828..02da1ea 100644
--- a/gpu/GLES2/gl2ext.h
+++ b/gpu/GLES2/gl2ext.h
@@ -950,6 +950,26 @@ typedef void (GL_APIENTRYP PFNGLREQUESTEXTENSIONCHROMIUM) (const GLchar *extensi
#endif
#endif
+/* GL_CHROMIUM_latch */
+/*
+ * This extension is similar in spirit to GL_NV_fence except
+ * that GL_CHROMIUM_latch does not require resources to be shared
+ * and it does not require glFlush semantics to work.
+ */
+#ifndef GL_CHROMIUM_latch
+#define GL_CHROMIUM_latch 1
+#ifdef GL_GLEXT_PROTOTYPES
+#define glSetLatchCHROMIUM GLES2_GET_FUN(SetLatchCHROMIUM)
+#define glWaitLatchCHROMIUM GLES2_GET_FUN(WaitLatchCHROMIUM)
+#if !defined(GLES2_USE_CPP_BINDINGS)
+GL_APICALL void GL_APIENTRY glSetLatchCHROMIUM (GLint shm_id, GLuint latch_id);
+GL_APICALL void GL_APIENTRY glWaitLatchCHROMIUM (GLint shm_id, GLuint latch_id);
+#endif
+#else
+typedef void (GL_APIENTRYP PFNGLSETLATCHCHROMIUM) (GLint shm_id, GLuint latch_id);
+typedef void (GL_APIENTRYP PFNGLWaitLATCHCHROMIUM) (GLint shm_id, GLuint latch_id);
+#endif
+#endif
#ifdef __cplusplus
}