summaryrefslogtreecommitdiff
path: root/gdk/gdkframeclockprivate.h
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2016-04-26 03:08:11 -0700
committerMatthias Clasen <mclasen@redhat.com>2016-04-26 09:06:07 -0400
commitf27dd214267b5b907411cefb85350acfbb26ac77 (patch)
tree483d25fff5f17218f2699f125b8c5c152ff11b28 /gdk/gdkframeclockprivate.h
parent8f64e4a8e3443eb887614e981b4a0f7b6ae3ac96 (diff)
downloadgtk+-f27dd214267b5b907411cefb85350acfbb26ac77.tar.gz
frametimings: reuse previous frame timing in common case
Typically, there won't be any references on old frame timings except for the most recent timing. So instead of discarding these and re-entering gslice twice, just steal the old frame timing and reuse it. https://bugzilla.gnome.org/show_bug.cgi?id=765592
Diffstat (limited to 'gdk/gdkframeclockprivate.h')
-rw-r--r--gdk/gdkframeclockprivate.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk/gdkframeclockprivate.h b/gdk/gdkframeclockprivate.h
index cda5aff37b..17e06dfcf7 100644
--- a/gdk/gdkframeclockprivate.h
+++ b/gdk/gdkframeclockprivate.h
@@ -111,7 +111,9 @@ void _gdk_frame_clock_begin_frame (GdkFrameClock *clock);
void _gdk_frame_clock_debug_print_timings (GdkFrameClock *clock,
GdkFrameTimings *timings);
-GdkFrameTimings *_gdk_frame_timings_new (gint64 frame_counter);
+GdkFrameTimings *_gdk_frame_timings_new (gint64 frame_counter);
+gboolean _gdk_frame_timings_steal (GdkFrameTimings *timings,
+ gint64 frame_counter);
void _gdk_frame_clock_emit_flush_events (GdkFrameClock *frame_clock);
void _gdk_frame_clock_emit_before_paint (GdkFrameClock *frame_clock);