From 6809e1216119e16c5be236418dc560d2e9bf854d Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 30 Sep 2009 08:54:19 +0200 Subject: [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. --- test/cairo-test-trace.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test') 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 } -- cgit v1.2.3