mutter/doc/reference
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 cogl-matrix: Add a public cogl_matrix_transpose() 2011-11-16 16:32:11 +00:00
cogl-2.0-experimental Add support for main loop integration 2012-01-05 13:40:10 +00:00
Makefile.am Make it clearer that the 2.0 API is experimental 2011-06-14 17:09:55 +01:00