diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-08 12:19:33 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-08 15:01:37 +0000 |
commit | 146da77d85b304651949a819bc8b0a74819f0416 (patch) | |
tree | 85f5a9f199ef491782045935d39ff93dae1a40e6 /perf | |
parent | 5f2e89660d5e38d8e2682945962521958f150825 (diff) |
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.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/perf/cairo-perf-trace.c b/perf/cairo-perf-trace.c index bd0cb07d..4b8c85ea 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; |