mutter/cogl/winsys
Neil Roberts 7497475295 Add support for main loop integration
This adds two new functions:

void
cogl_poll_get_info (CoglContext *context,
                    CoglPollFD **poll_fds,
                    int *n_poll_fds,
                    gint64 *timeout);

void
cogl_poll_dispatch (CoglContext *context,
                    const CoglPollFD *poll_fds,
                    int n_poll_fds);

The application is expected to call the first function whenever it is
about to block to go idle, and the second function whenever it comes
out of idle. This gives Cogl winsys's the ability poll file
descriptors for events. For example when handing swap complete
notifications, it can report that it needs to block on a file
descriptor.

The two functions are backed by winsys virtual functions. There are
currently no implementations. The default handler for get_info just
reports no file descriptors and an infinite timeout.

Reviewed-by: Robert Bragg <robert@linux.intel.com>
2012-01-05 13:40:10 +00:00
..
cogl-texture-pixmap-x11-private.h texture-pixmap-x11: Move GLX code to cogl-winsys-glx.c 2011-05-05 14:46:01 +01:00
cogl-texture-pixmap-x11.c cogl-texture-pixmap-x11: Fix the foreach_sub_texture_in_region impl 2011-12-20 12:46:50 +00:00
cogl-texture-pixmap-x11.h docs: Adds various missing 2.0 sections and symbols 2011-11-01 12:03:04 +00:00
cogl-winsys-egl-android-private.h Add a separate winsys vtable for each EGL platform 2011-12-08 17:38:25 +00:00
cogl-winsys-egl-android.c Move the EGL Android winsys out of cogl-winsys-egl 2011-12-13 16:08:37 +00:00
cogl-winsys-egl-feature-functions.h kms: Check for the right surfaceless extension depending on driver 2011-12-08 12:48:59 +00:00
cogl-winsys-egl-gdl-private.h Add a separate winsys vtable for each EGL platform 2011-12-08 17:38:25 +00:00
cogl-winsys-egl-gdl.c Move the EGL GDL winsys out of cogl-winsys-egl 2011-12-13 16:08:37 +00:00
cogl-winsys-egl-kms-private.h egl: Split out the KMS winsys as overrides of the EGL winsys 2011-12-09 17:29:49 +00:00
cogl-winsys-egl-kms.c kms: Don't use egl_surface_width/height 2011-12-13 13:12:16 +00:00
cogl-winsys-egl-null-private.h Add a separate winsys vtable for each EGL platform 2011-12-08 17:38:25 +00:00
cogl-winsys-egl-null.c Move the EGL null winsys out of cogl-winsys-egl 2011-12-13 13:12:17 +00:00
cogl-winsys-egl-private.h Move the EGL Android winsys out of cogl-winsys-egl 2011-12-13 16:08:37 +00:00
cogl-winsys-egl-wayland-private.h Add a separate winsys vtable for each EGL platform 2011-12-08 17:38:25 +00:00
cogl-winsys-egl-wayland.c winsys: Move Wayland-specific code out of the EGL winsys 2011-12-12 17:41:43 +00:00
cogl-winsys-egl-x11-private.h Rename the EGL_X11 winsys to EGL_XLIB 2011-12-14 16:40:26 +00:00
cogl-winsys-egl-x11.c cogl-texture-2d: Fix checking for the EGL winsys 2011-12-14 16:41:16 +00:00
cogl-winsys-egl.c cogl-texture-2d: Fix checking for the EGL winsys 2011-12-14 16:41:16 +00:00
cogl-winsys-glx-feature-functions.h winsys-glx: Fix synchronisation behaviour in _cogl_winsys_onscreen_swap_region 2011-09-19 16:40:06 +01:00
cogl-winsys-glx.c cogl-texture-2d: Fix checking for the EGL winsys 2011-12-14 16:41:16 +00:00
cogl-winsys-private.h Add support for main loop integration 2012-01-05 13:40:10 +00:00
cogl-winsys-sdl.c Update the SDL winsys 2011-12-14 16:45:17 +00:00
cogl-winsys-stub-private.h Make stub winsys into a proper winsys backend 2011-06-01 20:44:41 +01:00
cogl-winsys-stub.c Update cogl/winsys/cogl-winsys-stub.c 2011-11-23 12:16:45 +00:00
cogl-winsys-wgl-feature-functions.h Add a WGL winsys 2011-05-10 17:58:41 +01:00
cogl-winsys-wgl.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-winsys.c Don't use the 'NULL' GModule to resolve GL symbols 2011-07-27 16:10:02 +01:00