summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-08-10 12:43:49 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-08-10 14:06:15 +0100
commit40fa6c867cf371bad4a169abe9a4cea74c431680 (patch)
treeb36a890e55003f168829b26e18de40dd08857051 /util
parent34ce4680d12aecc5565e09fcc6a6a9103e1c752d (diff)
trace: Pop the surface after write-to-png
It is convenient if the user can simply enable the use of the commented write-to-png operation just by removing the preceding '%'. However, to do so we need to make sure that the line is stack-neutral and so need to pop the surface that we place onto the stack after writing the png. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'util')
-rw-r--r--util/cairo-trace/trace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c
index d9e77048..614783c6 100644
--- a/util/cairo-trace/trace.c
+++ b/util/cairo-trace/trace.c
@@ -3824,7 +3824,7 @@ cairo_surface_write_to_png (cairo_surface_t *surface, const char *filename)
if (surface != NULL && _write_lock ()) {
_trace_printf ("%% s%ld ", _get_surface_id (surface));
_emit_string_literal (filename, -1);
- _trace_printf (" write-to-png\n");
+ _trace_printf (" write-to-png pop\n");
_write_unlock ();
}
ret = DLCALL (cairo_surface_write_to_png, surface, filename);
@@ -3850,7 +3850,7 @@ cairo_surface_write_to_png_stream (cairo_surface_t *surface,
symbol[0] = '\0';
#endif
_emit_string_literal (symbol, -1);
- _trace_printf (" write-to-png-stream\n");
+ _trace_printf (" write-to-png-stream pop\n");
_write_unlock ();
}
ret = DLCALL (cairo_surface_write_to_png_stream,