summaryrefslogtreecommitdiff
path: root/boilerplate/cairo-boilerplate.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-08-18 18:50:00 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2008-08-19 11:15:12 +0100
commit776844eb9e4b0eb70621242212d732dfefcb6d8e (patch)
tree0c7087e65b8b27e9467b89be8098ee398c312a94 /boilerplate/cairo-boilerplate.h
parent00bc650455219e41fa20d3ec99321f4cbe97cbf1 (diff)
[boilerplate] Daemonic conversion utility.
In order to achieve substantial speed improvements the external conversion utilities are rewritten as a daemon that communicates with the test suite over a local socket. This is faster as it avoids the libtool and dynamic linker overhead for each invocation, the caches persist between tests and we no longer require a round trip through libpng. The daemon is started automatically by the test suite and if communication cannot be established then it falls back to using a pipe to a normal conversion utility. The daemon will then persist for 60 seconds waiting for further connections. Of course any memory leak (stares at poppler) is exacerbated.
Diffstat (limited to 'boilerplate/cairo-boilerplate.h')
-rw-r--r--boilerplate/cairo-boilerplate.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/boilerplate/cairo-boilerplate.h b/boilerplate/cairo-boilerplate.h
index ccd30ffb..844eed98 100644
--- a/boilerplate/cairo-boilerplate.h
+++ b/boilerplate/cairo-boilerplate.h
@@ -169,6 +169,13 @@ cairo_boilerplate_get_image_surface_from_png (const char *filename,
cairo_surface_t *
cairo_boilerplate_surface_create_in_error (cairo_status_t status);
+FILE *
+cairo_boilerplate_open_any2ppm (const char *filename,
+ int page);
+
+cairo_surface_t *
+cairo_boilerplate_image_surface_create_from_ppm_stream (FILE *file);
+
#include "xmalloc.h"
#endif