diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-03 18:26:50 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-03 18:26:50 +0100 |
commit | 6003ab77e1ebefadb97338de0e7da4a76d973b1a (patch) | |
tree | e375335dac3abfdd3e75cb18a317824556de84f6 /perf | |
parent | 2a9903dbbfeb3fe843f0d618d15674b37a29f3a9 (diff) |
Export meta-surface
The meta-surface is a vital tool to record a trace of drawing commands
in-memory. As such it is used throughout cairo.
The value of such a surface is immediately obvious and should be
applicable for many applications. The first such case is by
cairo-test-trace which wants to record the entire graph of drawing commands
that affect a surface in the event of a failure.
Diffstat (limited to 'perf')
-rw-r--r-- | perf/cairo-perf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c index 35a89b56..cf757f73 100644 --- a/perf/cairo-perf.c +++ b/perf/cairo-perf.c @@ -68,7 +68,7 @@ const cairo_perf_case_t perf_cases[]; static cairo_bool_t target_is_measurable (const cairo_boilerplate_target_t *target) { - 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) @@ -102,9 +102,7 @@ target_is_measurable (const cairo_boilerplate_target_t *target) case CAIRO_SURFACE_TYPE_QT: #endif return TRUE; - case CAIRO_SURFACE_TYPE_PDF: - case CAIRO_SURFACE_TYPE_PS: - case CAIRO_SURFACE_TYPE_SVG: + default: return FALSE; } |