summaryrefslogtreecommitdiff
path: root/perf/cairo-perf.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-06-02 09:00:21 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-06-02 15:13:47 +0100
commit70fd2bbce38fca65db6725c632ee591352dfe42c (patch)
tree6a67d9266eb2c0643b13d066fb2dc80225551ca9 /perf/cairo-perf.c
parentbc49cb377c70c4c6926ca52e34094e99a4591f14 (diff)
[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...)
Diffstat (limited to 'perf/cairo-perf.c')
-rw-r--r--perf/cairo-perf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c
index 67a4e510..72092fd1 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;