summaryrefslogtreecommitdiff
path: root/cogl/cogl-journal-private.h
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2013-01-10 17:13:34 -0800
committerRobert Bragg <robert@linux.intel.com>2013-05-28 21:36:03 +0100
commitea7d3b8476f3a22ef83371f4dedaa22e5d7ce0ac (patch)
tree9d2eaee3fd0b17c5e9c2bd77aa66669b82812b97 /cogl/cogl-journal-private.h
parent7b14b5e3dadd78c86c6063ace359b119b940609f (diff)
downloadcogl-ea7d3b8476f3a22ef83371f4dedaa22e5d7ce0ac.tar.gz
Add fence API
cogl_framebuffer_add_fence creates a synchronisation fence, which will invoke a user-specified callback when the GPU has finished executing all commands provided to it up to that point in time. Support is currently provided for GL 3.x's GL_ARB_sync extension, and EGL's EGL_KHR_fence_sync (when used with OpenGL ES). Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Neil Roberts <neil@linux.intel.com> Reviewed-by: Robert Bragg <robert@linux.intel.com> https://bugzilla.gnome.org/show_bug.cgi?id=691752 (cherry picked from commit e6d37470da9294adc1554c0a8c91aa2af560ed9f)
Diffstat (limited to 'cogl/cogl-journal-private.h')
-rw-r--r--cogl/cogl-journal-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cogl/cogl-journal-private.h b/cogl/cogl-journal-private.h
index 6f839d38..b73fbd1f 100644
--- a/cogl/cogl-journal-private.h
+++ b/cogl/cogl-journal-private.h
@@ -27,6 +27,7 @@
#include "cogl-texture.h"
#include "cogl-object-private.h"
#include "cogl-clip-stack.h"
+#include "cogl-fence-private.h"
#define COGL_JOURNAL_VBO_POOL_SIZE 8
@@ -58,6 +59,8 @@ typedef struct _CoglJournal
int fast_read_pixel_count;
+ CoglFenceList pending_fences;
+
} CoglJournal;
/* To improve batching of geometry when submitting vertices to OpenGL we