summaryrefslogtreecommitdiff
path: root/perf
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-08 12:19:33 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-08 15:01:37 +0000
commit146da77d85b304651949a819bc8b0a74819f0416 (patch)
tree85f5a9f199ef491782045935d39ff93dae1a40e6 /perf
parent5f2e89660d5e38d8e2682945962521958f150825 (diff)
downloadcairo-146da77d85b304651949a819bc8b0a74819f0416.tar.gz
script: Attempt to decompress images in place
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'perf')
-rw-r--r--perf/cairo-perf-trace.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/perf/cairo-perf-trace.c b/perf/cairo-perf-trace.c
index bd0cb07d1..4b8c85eab 100644
--- a/perf/cairo-perf-trace.c
+++ b/perf/cairo-perf-trace.c
@@ -299,6 +299,19 @@ _similar_surface_create (void *closure,
return surface;
}
+static cairo_surface_t *
+_source_image_create (void *closure,
+ cairo_format_t format,
+ int width,
+ int height,
+ long uid)
+{
+ struct trace *args = closure;
+
+ return cairo_surface_create_similar_image (args->surface,
+ format, width, height);
+}
+
static cairo_t *
_context_create (void *closure,
cairo_surface_t *surface)
@@ -643,7 +656,8 @@ cairo_perf_trace (cairo_perf_t *perf,
_context_create,
NULL, /* context_destroy */
NULL, /* show_page */
- NULL /* copy_page */
+ NULL, /* copy_page */
+ _source_image_create,
};
args.tile_size = perf->tile_size;