From ec58fde294afd52c89fa5ed21ba2611edfdbd550 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 31 Jan 2013 14:06:48 +0000 Subject: perf: Synchronize before stopping the timers Fixes a regression from commit 2855ff4666922f2c38505414270d47f659b0d499 Author: Andrea Canciani Date: Wed Aug 31 16:42:03 2011 +0200 perf: Reuse cairo-time which dropped the essential call to synchronize when refactoring the code. Reported-by: Siarhei Siamashka Signed-off-by: Chris Wilson --- perf/cairo-perf.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perf') diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c index 7f2ff5b8e..18db0c544 100644 --- a/perf/cairo-perf.c +++ b/perf/cairo-perf.c @@ -69,6 +69,9 @@ cairo_perf_timer_start (void) void cairo_perf_timer_stop (void) { + if (cairo_perf_timer_synchronize) + cairo_perf_timer_synchronize (cairo_perf_timer_synchronize_closure); + timer = _cairo_time_get_delta (timer); } -- cgit v1.2.1