summaryrefslogtreecommitdiff
path: root/clutter/clutter-private.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2009-11-12 20:37:01 +0000
committerRobert Bragg <robert@linux.intel.com>2010-02-09 22:19:41 +0000
commit5d702853b814445590aafe448bfc8f7993b06638 (patch)
tree43e15f4e444fa4951d87b19fde0d17609b654e11 /clutter/clutter-private.h
parent848db1ee4cc910542435bbcd3a57933bdf70269e (diff)
downloadclutter-5d702853b814445590aafe448bfc8f7993b06638.tar.gz
glx backend: Adds support for GLX_INTEL_swap_event
If your OpenGL driver supports GLX_INTEL_swap_event that means when glXSwapBuffers is called it returns immediatly and an XEvent is sent when the actual swap has finished. Clutter can use the events that notify swap completion as a means to throttle rendering in the master clock without blocking the CPU and so it should help improve the performance of CPU bound applications.
Diffstat (limited to 'clutter/clutter-private.h')
-rw-r--r--clutter/clutter-private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clutter/clutter-private.h b/clutter/clutter-private.h
index 79b9569cc..c20bfdc2f 100644
--- a/clutter/clutter-private.h
+++ b/clutter/clutter-private.h
@@ -246,6 +246,8 @@ gboolean _clutter_stage_has_queued_events (ClutterStage *stage);
void _clutter_stage_process_queued_events (ClutterStage *stage);
void _clutter_stage_update_input_devices (ClutterStage *stage);
+int _clutter_stage_get_pending_swaps (ClutterStage *stage);
+
/* vfuncs implemented by backend */
GType _clutter_backend_impl_get_type (void);