diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-08-16 21:08:22 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-08-29 08:08:39 +0100 |
commit | cd7b27ff5c01a533c2c065c4b455ad19df2be3bb (patch) | |
tree | e86d4600bfbfd420dcbd4545d610dd119cd37ec8 /src/cairo.h | |
parent | 658cdc7c9aac23f82f3ea5db8df10844aeb3ac75 (diff) |
Add 'flight-data-recorder' utility.
This is a simple variation on cairo-trace that wraps records the last 16
contexts by wrapping the target surface inside a tee surface, along with a
meta/recording surface. Then on receipt of a SIGUSR1, those last 16
contexts are played via a script-surface into /tmp/fdr.trace.
Mostly proof-of-concept, it seems to be causing a number of rendering
glitches whilst testing with firefox -- otherwise, it seems to works.
Diffstat (limited to 'src/cairo.h')
-rw-r--r-- | src/cairo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cairo.h b/src/cairo.h index 9be5c703..55c0fdd9 100644 --- a/src/cairo.h +++ b/src/cairo.h @@ -2198,6 +2198,10 @@ cairo_public void cairo_tee_surface_append (cairo_surface_t *surface, cairo_surface_t *target); +cairo_public cairo_surface_t * +cairo_tee_surface_index (cairo_surface_t *abstract_surface, + int index); + /* Pattern creation functions */ cairo_public cairo_pattern_t * |