cogl: Adds _cogl_swap_buffers_notify for clutter backends
authorRobert Bragg <robert@linux.intel.com>
Wed, 12 Jan 2011 22:06:58 +0000 (22:06 +0000)
committerRobert Bragg <robert@linux.intel.com>
Fri, 21 Jan 2011 16:18:10 +0000 (16:18 +0000)
commit142b229c5c2684f94af32358d1401b61aa3019aa
treea77c54b823627e8d7bcee4c895eda6e5493508c7
parente150f474b3e9e58565dc894b4ae9234406d90675
cogl: Adds _cogl_swap_buffers_notify for clutter backends

This adds a stop-gap mechanism for Cogl to know when the window system
is requested to present the current backbuffer to the frontbuffer by
adding a _cogl_swap_buffers_notify function that backends are now
expected to call right after issuing the equivalent request to OpenGL
vie the platforms OpenGL binding layer. This (blindly) updates all the
backends to call this new function.

For now Cogl doesn't do anything with the notification but the intention
is to use it as part of a planned read-pixel optimization which will
need to reset some state at the start of each new frame.
clutter/cogl/cogl/cogl-framebuffer-private.h
clutter/cogl/cogl/cogl-framebuffer.c
clutter/cogl/cogl/cogl.c
clutter/cogl/cogl/cogl.h
clutter/egl/clutter-stage-egl.c
clutter/fruity/clutter-backend-fruity.c
clutter/glx/clutter-stage-glx.c
clutter/osx/clutter-stage-osx.c
clutter/wayland/clutter-stage-wayland.c
clutter/win32/clutter-backend-win32.c