summaryrefslogtreecommitdiff
path: root/cogl/cogl-glx-renderer-private.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2013-04-18 14:19:43 +0100
committerRobert Bragg <robert@linux.intel.com>2013-04-29 18:00:01 +0100
commita1e169f18f4257caec58760adccfe4ec09b9805d (patch)
treeaee02b6cc2adbf61be3281f16cbd3b30e2da9d19 /cogl/cogl-glx-renderer-private.h
parent2e15fc76eb29bf5932418f7ee80f1fcb2f6a816c (diff)
downloadcogl-a1e169f18f4257caec58760adccfe4ec09b9805d.tar.gz
Add api for queuing idle callback internally
This adds a _cogl_poll_renderer_add_idle api that can be used internally for queuing an idle callback without needing to make any assumption about the system mainloop that is being used. This is now used to avoid having the _cogl_poll_renderer_dispatch() directly check for all kinds of events to dispatch, and to avoid having the winsys dispatch vfuncs need to directly know about CoglContext. This means we can now avoid having a back reference from CoglRenderer to the CoglContext. Reviewed-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'cogl/cogl-glx-renderer-private.h')
-rw-r--r--cogl/cogl-glx-renderer-private.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/cogl/cogl-glx-renderer-private.h b/cogl/cogl-glx-renderer-private.h
index cf4e02d9..aae2d9da 100644
--- a/cogl/cogl-glx-renderer-private.h
+++ b/cogl/cogl-glx-renderer-private.h
@@ -54,12 +54,7 @@ typedef struct _CoglGLXRenderer
/* GModule pointing to libGL which we use to get glX functions out of */
GModule *libgl_module;
- /* Events get dispatched from the CoglRenderer and these are
- * high-level flags that let us quickly check if there are any
- * pending events to dispatch. */
- CoglBool pending_sync_notify;
- CoglBool pending_complete_notify;
- CoglBool pending_resize_notify;
+ CoglClosure *flush_notifications_idle;
/* Copy of the winsys features that are based purely on the
* information we can get without using a GL context. We want to