From 70fd2bbce38fca65db6725c632ee591352dfe42c Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 2 Jun 2009 09:00:21 +0100 Subject: [PATCH] [perf] Exclude similar testing by default There are synchronisation issues with similar surfaces (as only the original target surface is synced) which interferes with making performance comparisons. (There still maybe some value should you be aware of the limitations...) --- perf/cairo-perf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c index 67a4e510b..72092fd10 100644 --- a/perf/cairo-perf.c +++ b/perf/cairo-perf.c @@ -128,12 +128,13 @@ _content_to_string (cairo_content_t content, cairo_bool_t similar) static cairo_bool_t cairo_perf_has_similar (cairo_perf_t *perf) { - cairo_surface_t *target = cairo_get_target (perf->cr); + cairo_surface_t *target; - if (getenv ("CAIRO_TEST_IGNORE_SIMILAR")) + if (getenv ("CAIRO_TEST_SIMILAR") == NULL) return FALSE; /* exclude the image backend */ + target = cairo_get_target (perf->cr); if (cairo_surface_get_type (target) == CAIRO_SURFACE_TYPE_IMAGE) return FALSE;