[clutter] gdk: Use frame time when calculating the tick time for clock updates



commit 9e8da646368394f3004e72c4bc4409ad1c473c92
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Thu Sep 17 16:31:11 2015 +0100

    gdk: Use frame time when calculating the tick time for clock updates
    
    This is how GdkFrameClock is meant to be used: the frame time is meant
    to be queried from the GdkFrameClock within its frame signals, rather
    from the system monotonic time source.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755357

 clutter/gdk/clutter-master-clock-gdk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/gdk/clutter-master-clock-gdk.c b/clutter/gdk/clutter-master-clock-gdk.c
index 748ba55..c069f71 100644
--- a/clutter/gdk/clutter-master-clock-gdk.c
+++ b/clutter/gdk/clutter-master-clock-gdk.c
@@ -243,7 +243,7 @@ clutter_master_clock_gdk_update (GdkFrameClock         *frame_clock,
   _clutter_threads_acquire_lock ();
 
   /* Get the time to use for this frame */
-  master_clock->cur_tick = g_get_monotonic_time ();
+  master_clock->cur_tick = gdk_frame_clock_get_frame_time (frame_clock);
 
 #ifdef CLUTTER_ENABLE_DEBUG
   /* Update the remaining budget */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]