diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-09-17 16:31:11 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-09-21 18:03:04 +0100 |
commit | 9e8da646368394f3004e72c4bc4409ad1c473c92 (patch) | |
tree | d0cc0781ddb570832b9f4ddd6014dc7021708244 | |
parent | 5545b69a8f064d020f4b9c3532147c80f433ab63 (diff) | |
download | clutter-9e8da646368394f3004e72c4bc4409ad1c473c92.tar.gz |
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
-rw-r--r-- | 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 748ba5550..c069f7139 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 */ |