summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-09-30 08:54:19 +0200
committerBenjamin Otte <otte@gnome.org>2009-09-30 08:58:19 +0200
commit6809e1216119e16c5be236418dc560d2e9bf854d (patch)
treed76fc38a8377e3134743659a590bfb514a1eefe0 /test
parentf8c49b4187a32b60408b23b2c2abce1778a8dc95 (diff)
[API] Make _cairo_meta_surface_replay() private again
Replaying a meta surface can be achieved by using it as a source for a cairo_paint() so exporting a separate API is unnecesary and confusing. So after consulting Chris and Carl, we decided to remove the function again.
Diffstat (limited to 'test')
-rw-r--r--test/cairo-test-trace.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/cairo-test-trace.c b/test/cairo-test-trace.c
index c35d6a7e..1d12f53d 100644
--- a/test/cairo-test-trace.c
+++ b/test/cairo-test-trace.c
@@ -867,7 +867,7 @@ write_trace (const char *trace, struct slave *slave)
cairo_script_context_t *ctx;
cairo_surface_t *script;
char *filename;
- cairo_status_t status;
+ cairo_t *cr;
xasprintf (&filename, "%s-fail.trace", trace);
ctx = cairo_script_context_create (filename);
@@ -877,7 +877,11 @@ write_trace (const char *trace, struct slave *slave)
cairo_script_context_destroy (ctx);
free (filename);
- status = cairo_meta_surface_replay (slave->image, script);
+ cr = cairo_create (slave->image);
+ cairo_set_source_surface (cr, script, 0, 0);
+ cairo_paint (cr);
+ cairo_destroy (cr);
+
cairo_surface_destroy (script);
#endif
}