summaryrefslogtreecommitdiff
path: root/test/cairo-test.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-07-18 08:04:16 +0000
committerCarl Worth <cworth@cworth.org>2005-07-18 08:04:16 +0000
commit751e059f5c506138c478fbcc2e9dfe8e92aaa3ab (patch)
treecac7e85528b44e32e2ee196baa3f956f9382d8ab /test/cairo-test.h
parent584954859ead08491cd5ed04aec54aae6b1048b8 (diff)
Note some progress.
New helper function to help create an image surface from a PNG file, while taking the srcdir environment variable into consideration. Rename the pattern creating helper function to match. Use new cairo_test_create_surface_from_png so that non-srcdir builds work. Track change in cairo_test_create_pattern_from_png.
Diffstat (limited to 'test/cairo-test.h')
-rw-r--r--test/cairo-test.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/cairo-test.h b/test/cairo-test.h
index 1055a0c2..beabc6a5 100644
--- a/test/cairo-test.h
+++ b/test/cairo-test.h
@@ -53,8 +53,11 @@ cairo_test_expect_failure (cairo_test_t *test,
cairo_test_draw_function_t draw,
const char *reason);
+cairo_surface_t *
+cairo_test_create_surface_from_png (const char *filename);
+
cairo_pattern_t *
-cairo_test_create_png_pattern (cairo_t *cr, const char *filename);
+cairo_test_create_pattern_from_png (const char *filename);
void
cairo_test_log (const char *fmt, ...);
@@ -63,4 +66,3 @@ void
xasprintf (char **strp, const char *fmt, ...);
#endif
-