]> Pileus Git - ~andy/gtk/commit
Add gdk_frame_timings_get_predicted_presentation_time()
authorOwen W. Taylor <otaylor@fishsoup.net>
Thu, 15 Nov 2012 19:11:41 +0000 (14:11 -0500)
committerOwen W. Taylor <otaylor@fishsoup.net>
Thu, 14 Feb 2013 22:19:51 +0000 (17:19 -0500)
commitfb44ea8a85db3e41f10304f559772f2c10d28c29
treee05881074a4aa92e186fe25ffa756fb5d16391b4
parent8855bf052d8bbbd8fdfce1cd5f4a3540661a9c8e
Add gdk_frame_timings_get_predicted_presentation_time()

For an operation like synchronizing audio to video playback, we need to
be able to predict the time that a frame will be presented. The details
of this depend on the windowing system, so make the backend predict
a presentation time for ::begin-frame and set it on the GdkFrameTimings.

The timing algorithm of GdkFrameClockIdle is adjusted to give predictable
presentation times for frames that are not throttled by the windowing
system.

Helper functions:

 gdk_frame_clock_get_current_frame_timings()
 gdk_frame_clock_get_refresh_info()

are added for operations that would otherwise be needed multiple times
in different locations.

https://bugzilla.gnome.org/show_bug.cgi?id=685460
gdk/gdkframeclock.c
gdk/gdkframeclock.h
gdk/gdkframeclockidle.c
gdk/gdkframehistory.c
gdk/gdkframetimings.c
gdk/gdkframetimings.h
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkwindow-x11.c
gdk/x11/gdkwindow-x11.h