[cairo-commit] perf/cairo-perf.c

Chris Wilson ickle at kemper.freedesktop.org
Thu Jan 31 06:11:24 PST 2013


 perf/cairo-perf.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit ec58fde294afd52c89fa5ed21ba2611edfdbd550
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Jan 31 14:06:48 2013 +0000

    perf: Synchronize before stopping the timers
    
    Fixes a regression from
    
    commit 2855ff4666922f2c38505414270d47f659b0d499
    Author: Andrea Canciani <ranma42 at 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 at gmail.com>
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c
index 7f2ff5b..18db0c5 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);
 }
 


More information about the cairo-commit mailing list