diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-31 14:06:48 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-31 14:06:48 +0000 |
commit | ec58fde294afd52c89fa5ed21ba2611edfdbd550 (patch) | |
tree | 50330903473339f38f478bb7180dba8d5a355f95 | |
parent | 2560c0b6577a6380ef175cf18bb804913784632c (diff) |
perf: Synchronize before stopping the timers
Fixes a regression from
commit 2855ff4666922f2c38505414270d47f659b0d499
Author: Andrea Canciani <ranma42@gmail.com>
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 <siarhei.siamashka@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | perf/cairo-perf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c index 7f2ff5b8..18db0c54 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); } |