diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-06-15 11:58:58 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-06-15 12:03:37 +0100 |
commit | e5727e20f52eb0308a8ad1c44a6eb4c7c65d7ff0 (patch) | |
tree | ca76fc8992561040c284031582a270541784df67 /perf/cairo-perf-trace.c | |
parent | f2057061c67236a79c8bb69b84e44e151109629a (diff) | |
download | cairo-e5727e20f52eb0308a8ad1c44a6eb4c7c65d7ff0.tar.gz |
Expose _cairo_null_surface_create() via a test surface
Using a null surface is a convenient method to measure the overhead of the
performance testing framework, so export it although as a test-surface so
that it will only be available in development builds and not pollute
distributed libraries.
Diffstat (limited to 'perf/cairo-perf-trace.c')
-rw-r--r-- | perf/cairo-perf-trace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perf/cairo-perf-trace.c b/perf/cairo-perf-trace.c index 6ef44a944..9b535dfe2 100644 --- a/perf/cairo-perf-trace.c +++ b/perf/cairo-perf-trace.c @@ -35,6 +35,7 @@ #include "cairo-boilerplate-getopt.h" #include <cairo-script-interpreter.h> +#include <cairo-types-private.h> /* for INTERNAL_SURFACE_TYPE */ /* For basename */ #ifdef HAVE_LIBGEN_H @@ -71,7 +72,7 @@ target_is_measurable (const cairo_boilerplate_target_t *target) if (target->content != CAIRO_CONTENT_COLOR_ALPHA) return FALSE; - switch (target->expected_type) { + switch ((int) target->expected_type) { case CAIRO_SURFACE_TYPE_IMAGE: if (strcmp (target->name, "pdf") == 0 || strcmp (target->name, "ps") == 0) @@ -97,9 +98,8 @@ target_is_measurable (const cairo_boilerplate_target_t *target) case CAIRO_SURFACE_TYPE_WIN32: case CAIRO_SURFACE_TYPE_BEOS: case CAIRO_SURFACE_TYPE_DIRECTFB: -#if CAIRO_VERSION_MAJOR > 1 || (CAIRO_VERSION_MAJOR == 1 && CAIRO_VERSION_MINOR > 2) case CAIRO_SURFACE_TYPE_OS2: -#endif + case CAIRO_INTERNAL_SURFACE_TYPE_NULL: return TRUE; case CAIRO_SURFACE_TYPE_PDF: case CAIRO_SURFACE_TYPE_PS: |