mutter/cogl
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
..
driver Adds support for a mirrored repeat wrap mode 2011-11-01 12:03:02 +00:00
gl-prototypes gl-prototypes: split up cogl-ext-functions.h 2012-01-04 19:27:20 +00:00
tesselator
winsys Add support for main loop integration 2012-01-05 13:40:10 +00:00
cogl2-clip-state.c framebuffer: Add CoglFramebuffer clip stack methods 2011-12-06 18:51:56 +00:00
cogl2-clip-state.h docs: make cogl2-clip-state.h docs consistent 2011-12-06 18:51:56 +00:00
cogl2-experimental.h 2.0: Add cogl2-experimental.h + don't pollute .pc CFLAGS 2011-09-09 15:06:31 +01:00
cogl2-path.c path: use cogl_framebuffer_push_path_clip in cogl2-path.c 2011-12-06 18:51:56 +00:00
cogl2-path.h
cogl-1.0.pc.in
cogl-2.0-experimental.pc.in 2.0: Add cogl2-experimental.h + don't pollute .pc CFLAGS 2011-09-09 15:06:31 +01:00
cogl-atlas-texture-private.h
cogl-atlas-texture.c texture: Make CoglSubTexture experimental public api 2011-11-01 12:03:03 +00:00
cogl-atlas.c
cogl-atlas.h cogl: Use GHookList instead of CoglCallbackList 2011-03-14 18:18:15 +00:00
cogl-attribute-buffer-private.h
cogl-attribute-buffer.c make COGL_FEATURE_VBOS a private feature 2011-11-01 12:03:01 +00:00
cogl-attribute-buffer.h
cogl-attribute-private.h rework enabling of attributes, removing _cogl_enable() 2011-12-06 18:51:57 +00:00
cogl-attribute.c attribute: Fix including progend-glsl-private.h on GL2 2011-12-07 19:01:29 +00:00
cogl-attribute.h attribute: Add the buffer and normalized property APIs to the header 2011-12-06 19:02:06 +00:00
cogl-bitmap-fallback.c
cogl-bitmap-pixbuf.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-bitmap-private.h
cogl-bitmap.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-bitmap.h
cogl-bitmask.c cogl-bitmask: Add _cogl_bitmask_popcount 2011-11-16 16:32:11 +00:00
cogl-bitmask.h cogl-bitmask.h: Eliminate compiler warning 2011-12-07 12:08:15 +00:00
cogl-blend-string.c blend-strings: Make braces around blend factor optional 2011-09-05 17:54:46 +01:00
cogl-blend-string.h
cogl-blit.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-blit.h
cogl-boxed-value.c cogl-boxed-value: Add _cogl_boxed_value_copy 2011-11-16 16:32:11 +00:00
cogl-boxed-value.h cogl-boxed-value: Add _cogl_boxed_value_copy 2011-11-16 16:32:11 +00:00
cogl-buffer-private.h buffer: make the COGL_BUFFER casting macro public 2011-08-12 15:28:43 +01:00
cogl-buffer.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-buffer.h buffer: make the COGL_BUFFER casting macro public 2011-08-12 15:28:43 +01:00
cogl-clip-stack.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-clip-stack.h remove redundant _cogl_clip_stack_dirty() api 2011-12-06 18:51:57 +00:00
cogl-clip-state-private.h clip-state: remove redundant _cogl_clip_state_flush() api 2011-12-06 18:51:57 +00:00
cogl-clip-state.c clip-state: remove redundant _cogl_clip_state_flush() api 2011-12-06 18:51:57 +00:00
cogl-clip-state.h
cogl-clutter-xlib.h Remove inclusion of Xlib headers in Cogl headers 2011-11-01 15:55:53 +00:00
cogl-clutter.c Remove inclusion of Xlib headers in Cogl headers 2011-11-01 15:55:53 +00:00
cogl-clutter.h Remove inclusion of Xlib headers in Cogl headers 2011-11-01 15:55:53 +00:00
cogl-color-private.h
cogl-color.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-color.h
cogl-config-private.h cogl: Add support for reading a cogl.conf config file 2011-08-12 15:28:42 +01:00
cogl-config.c cogl: Add support for reading a cogl.conf config file 2011-08-12 15:28:42 +01:00
cogl-context-private.h gl-prototypes: split up cogl-ext-functions.h 2012-01-04 19:27:20 +00:00
cogl-context.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-context.h Add the missing cogl_is_context() function 2012-01-05 12:58:41 +00:00
cogl-debug-options.h Mark the debug options for translation 2011-10-14 13:56:51 +01:00
cogl-debug.c debug: Accept HELP for the COGL_DEBUG environment variable. 2011-12-09 17:57:10 +00:00
cogl-debug.h cogl-debug: Mark _cogl_debug_flags with dllexport for MSVC 2011-11-25 13:14:10 +00:00
cogl-defines.h.in
cogl-defines.h.win32 VS 2008/2010 project files to build Cogl 2011-11-25 13:12:45 +00:00
cogl-defines.h.win32_SDL Bug 666349: SDL/MSVC-Add a pre-configured cogl-defines.h 2011-12-20 22:30:42 +08:00
cogl-deprecated.h
cogl-depth-state-private.h
cogl-depth-state.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-depth-state.h features: Support more than 32 features! 2011-11-01 12:03:01 +00:00
cogl-display-private.h egl-gdl: struct gdl_plane never was a valid type 2011-07-29 11:50:15 +01:00
cogl-display.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-display.h Fix typo in cogl/cogl-display.h 2011-09-06 11:19:20 +01:00
cogl-enum-types.c.in
cogl-enum-types.h.in
cogl-euler.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-euler.h
cogl-feature-private.c gl-prototypes: split up cogl-ext-functions.h 2012-01-04 19:27:20 +00:00
cogl-feature-private.h
cogl-fixed.c cogl-fixed: Move the GType defs from cogl-util.c to cogl-fixed.c 2011-11-16 16:21:31 +00:00
cogl-fixed.h
cogl-flags.h cogl-flags: Fix iterating flag when the most-significant bit is set 2011-11-22 16:07:21 +00:00
cogl-framebuffer-private.h framebuffer: deal with winding state like other state 2011-12-06 18:51:57 +00:00
cogl-framebuffer.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-framebuffer.h framebuffer: Add CoglFramebuffer clip stack methods 2011-12-06 18:51:56 +00:00
cogl-glx-display-private.h Remove CoglXlibDisplay 2011-12-12 16:14:18 +00:00
cogl-glx-renderer-private.h cogl-xlib-renderer: Move private data to cogl_object_set_user_data 2011-12-12 16:13:57 +00:00
cogl-gtype-private.h
cogl-handle.h
cogl-index-buffer-private.h
cogl-index-buffer.c make COGL_FEATURE_VBOS a private feature 2011-11-01 12:03:01 +00:00
cogl-index-buffer.h
cogl-indices-private.h
cogl-indices.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-indices.h doc: Adds some documentation for CoglIndices 2011-11-01 12:03:03 +00:00
cogl-internal.h cogl-program: Move the code for CoglBoxedValue to its own file 2011-11-16 16:32:10 +00:00
cogl-journal-private.h Add a strong CoglTexture type to replace CoglHandle 2011-09-21 15:27:03 +01:00
cogl-journal.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-material-compat.c
cogl-material-compat.h
cogl-matrix-private.h
cogl-matrix-stack.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-matrix-stack.h Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-matrix.c matrix: Add cogl_matrix_orthographic 2011-12-06 18:51:56 +00:00
cogl-matrix.h docs: updates cogl-matrix.h docs to be consistent 2011-12-06 18:51:57 +00:00
cogl-meta-texture.c meta-texture: Support CLAMP_TO_EDGE 2011-11-01 12:03:03 +00:00
cogl-meta-texture.h meta-texture: Support CLAMP_TO_EDGE 2011-11-01 12:03:03 +00:00
cogl-node-private.h pipeline: Split more code out from cogl-pipeline.c 2011-09-21 17:03:10 +01:00
cogl-node.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-object-private.h
cogl-object.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-object.h
cogl-offscreen.h Add a strong CoglTexture type to replace CoglHandle 2011-09-21 15:27:03 +01:00
cogl-onscreen-private.h framebuffer: split out CoglOnscreen code 2011-11-01 12:03:02 +00:00
cogl-onscreen-template-private.h framebuffer: split out CoglOnscreen code 2011-11-01 12:03:02 +00:00
cogl-onscreen-template.c onscreen: Support multisample based onscreen rendering 2011-10-28 19:10:16 +01:00
cogl-onscreen-template.h onscreen: Support multisample based onscreen rendering 2011-10-28 19:10:16 +01:00
cogl-onscreen.c framebuffer: Optimize _cogl_framebuffer_flush_state() 2011-12-06 18:51:57 +00:00
cogl-onscreen.h wayland: Add API to access the shell surface for the onscreen 2011-12-08 16:21:57 +00:00
cogl-pango.h
cogl-path-private.h clip-stack: Move path flushing code to cogl-clip-stack.c 2011-11-01 12:02:59 +00:00
cogl-path.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-path.h
cogl-pipeline-cache.c cogl-pipeline: Add two hook points for adding shader snippets 2011-12-06 19:02:05 +00:00
cogl-pipeline-cache.h
cogl-pipeline-debug.c pipeline: Split more code out from cogl-pipeline.c 2011-09-21 17:03:10 +01:00
cogl-pipeline-fragend-arbfp-private.h
cogl-pipeline-fragend-arbfp.c cogl-pipeline: Add two hook points for adding shader snippets 2011-12-06 19:02:05 +00:00
cogl-pipeline-fragend-fixed-private.h
cogl-pipeline-fragend-fixed.c cogl-pipeline: Add two hook points for adding shader snippets 2011-12-06 19:02:05 +00:00
cogl-pipeline-fragend-glsl-private.h
cogl-pipeline-fragend-glsl.c snippet: Add a hook for the layer fragment processing 2011-12-06 19:02:06 +00:00
cogl-pipeline-layer-private.h snippet: Add a hook for the layer texture coordinate transformation 2011-12-06 19:02:06 +00:00
cogl-pipeline-layer-state-private.h snippet: Add a hook for the layer texture coordinate transformation 2011-12-06 19:02:06 +00:00
cogl-pipeline-layer-state.c snippet: Add a hook for the layer texture coordinate transformation 2011-12-06 19:02:06 +00:00
cogl-pipeline-layer-state.h snippet: Move the hook to be a property of the snippet 2011-12-06 19:02:06 +00:00
cogl-pipeline-layer.c snippet: Add a hook for the layer texture coordinate transformation 2011-12-06 19:02:06 +00:00
cogl-pipeline-opengl-private.h
cogl-pipeline-opengl.c rework enabling of attributes, removing _cogl_enable() 2011-12-06 18:51:57 +00:00
cogl-pipeline-private.h Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-pipeline-progend-fixed-private.h Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-pipeline-progend-fixed.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-pipeline-progend-glsl-private.h rework enabling of attributes, removing _cogl_enable() 2011-12-06 18:51:57 +00:00
cogl-pipeline-progend-glsl.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-pipeline-snippet-private.h snippet: Add a hook for the layer texture coordinate transformation 2011-12-06 19:02:06 +00:00
cogl-pipeline-snippet.c snippet: Add a hook for the layer texture coordinate transformation 2011-12-06 19:02:06 +00:00
cogl-pipeline-state-private.h pipeline: Assume blend enabled when there are snippets 2011-12-06 19:02:06 +00:00
cogl-pipeline-state.c pipeline: fix realloc of uniform overrides array 2012-01-04 19:27:20 +00:00
cogl-pipeline-state.h snippet: Add some more documentation 2011-12-07 14:52:48 +00:00
cogl-pipeline-vertend-fixed-private.h
cogl-pipeline-vertend-fixed.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-pipeline-vertend-glsl-private.h
cogl-pipeline-vertend-glsl.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-pipeline.c Flush matrices in the progend and flip with a vector 2011-12-06 19:02:06 +00:00
cogl-pipeline.h cogl-pipeline: Add two hook points for adding shader snippets 2011-12-06 19:02:05 +00:00
cogl-pixel-buffer-private.h
cogl-pixel-buffer.c make COGL_FEATURE_PBOS a private feature 2011-11-01 12:03:01 +00:00
cogl-pixel-buffer.h
cogl-point-in-poly-private.h
cogl-point-in-poly.c
cogl-poll.c Add support for main loop integration 2012-01-05 13:40:10 +00:00
cogl-poll.h Add support for main loop integration 2012-01-05 13:40:10 +00:00
cogl-primitive-private.h primitive: Adds _cogl_primitive_draw api taking flags 2011-11-01 12:02:59 +00:00
cogl-primitive.c primitive: Add n_indices arg to _set_indices function 2011-11-01 12:03:03 +00:00
cogl-primitive.h primitive: Add n_indices arg to _set_indices function 2011-11-01 12:03:03 +00:00
cogl-primitives-private.h
cogl-primitives.c rectangles: rely on meta-texture api for clamping 2011-11-01 12:03:03 +00:00
cogl-primitives.h
cogl-private.h Add internal _cogl_push_source to optionally disable legacy state 2011-09-19 16:40:06 +01:00
cogl-profile.c Mark the debug options for translation 2011-10-14 13:56:51 +01:00
cogl-profile.h
cogl-program-private.h
cogl-program.c cogl-program: Move the code for CoglBoxedValue to its own file 2011-11-16 16:32:10 +00:00
cogl-quaternion-private.h
cogl-quaternion.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-quaternion.h
cogl-queue.h
cogl-rectangle-map.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-rectangle-map.h
cogl-renderer-private.h wayland: Add api to set a foreign shell 2011-12-07 15:53:05 +00:00
cogl-renderer.c build: removes unused variable 2012-01-04 19:32:41 +00:00
cogl-renderer.h Update the SDL winsys 2011-12-14 16:45:17 +00:00
cogl-shader-boilerplate.h
cogl-shader-private.h
cogl-shader.c Use the same number for n_tex_coord_attribs in all linked shaders 2011-11-02 13:50:28 +00:00
cogl-shader.h snippet: Add some more documentation 2011-12-07 14:52:48 +00:00
cogl-snippet-private.h snippet: Move the hook to be a property of the snippet 2011-12-06 19:02:06 +00:00
cogl-snippet.c snippet: Move the hook to be a property of the snippet 2011-12-06 19:02:06 +00:00
cogl-snippet.h snippet: Add some more documentation 2011-12-07 14:52:48 +00:00
cogl-spans.c spans: avoid normalize with normalize_factor of 1 2011-11-01 12:03:03 +00:00
cogl-spans.h Adds support for a mirrored repeat wrap mode 2011-11-01 12:03:02 +00:00
cogl-sub-texture-private.h texture: Make CoglSubTexture experimental public api 2011-11-01 12:03:03 +00:00
cogl-sub-texture.c texture: Make CoglSubTexture experimental public api 2011-11-01 12:03:03 +00:00
cogl-sub-texture.h texture: Make CoglSubTexture experimental public api 2011-11-01 12:03:03 +00:00
cogl-swap-chain-private.h
cogl-swap-chain.c
cogl-swap-chain.h
cogl-texture-2d-private.h
cogl-texture-2d-sliced-private.h texture-2d-sliced: make CoglTexture2DSliced public 2011-11-01 12:02:59 +00:00
cogl-texture-2d-sliced.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-texture-2d-sliced.h texture-2d-sliced: make CoglTexture2DSliced public 2011-11-01 12:02:59 +00:00
cogl-texture-2d.c cogl-texture-2d: Fix checking for the EGL winsys 2011-12-14 16:41:16 +00:00
cogl-texture-2d.h features: Support more than 32 features! 2011-11-01 12:03:01 +00:00
cogl-texture-3d-private.h
cogl-texture-3d.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-texture-3d.h
cogl-texture-driver.h
cogl-texture-private.h meta-texture: This publicly exposes CoglMetaTexture 2011-11-01 12:03:01 +00:00
cogl-texture-rectangle-private.h texture: Make CoglTextureRectangle experimentally public 2011-11-01 12:03:02 +00:00
cogl-texture-rectangle.c texture: Make CoglTextureRectangle experimentally public 2011-11-01 12:03:02 +00:00
cogl-texture-rectangle.h texture: Make CoglTextureRectangle experimentally public 2011-11-01 12:03:02 +00:00
cogl-texture.c avoid touching fb matrix stack directly 2011-12-06 18:51:56 +00:00
cogl-texture.h texture: assert set_region size <= src size 2011-12-06 18:51:56 +00:00
cogl-types.h pipeline: Make the backface culling experimental public 2011-11-14 18:40:27 +00:00
cogl-util.c Move POPCOUNTL to cogl-util 2011-11-16 16:32:11 +00:00
cogl-util.h cogl-debug: Mark _cogl_debug_flags with dllexport for MSVC 2011-11-25 13:14:10 +00:00
cogl-vector.c Start to reduce dependence on glib 2011-11-01 12:03:02 +00:00
cogl-vector.h
cogl-vertex-buffer-private.h
cogl-vertex-buffer.c primitive: Add n_indices arg to _set_indices function 2011-11-01 12:03:03 +00:00
cogl-vertex-buffer.h
cogl-wayland-renderer.h wayland: Add api to set a foreign shell 2011-12-07 15:53:05 +00:00
cogl-win32-renderer.c
cogl-win32-renderer.h
cogl-x11-renderer-private.h
cogl-xlib-private.h
cogl-xlib-renderer-private.h cogl-xlib-renderer: Move private data to cogl_object_set_user_data 2011-12-12 16:13:57 +00:00
cogl-xlib-renderer.c cogl-xlib-renderer: Move private data to cogl_object_set_user_data 2011-12-12 16:13:57 +00:00
cogl-xlib-renderer.h Remove inclusion of Xlib headers in Cogl headers 2011-11-01 15:55:53 +00:00
cogl-xlib.c cogl-xlib-renderer: Move private data to cogl_object_set_user_data 2011-12-12 16:13:57 +00:00
cogl-xlib.h Remove inclusion of Xlib headers in Cogl headers 2011-11-01 15:55:53 +00:00
cogl.c rework enabling of attributes, removing _cogl_enable() 2011-12-06 18:51:57 +00:00
cogl.h Add support for main loop integration 2012-01-05 13:40:10 +00:00
cogl.rc.in Add Windows Resource Files templates 2011-12-15 20:31:30 +08:00
cogl.symbols Update cogl.symbols 2011-12-07 16:54:04 +08:00
Makefile.am Add support for main loop integration 2012-01-05 13:40:10 +00:00
stb_image.c stb_image: use glib sized types 2011-08-12 15:28:42 +01:00