[cairo-commit] perf/cairo-perf.c
Chris Wilson
ickle at kemper.freedesktop.org
Wed Apr 18 06:13:58 PDT 2007
perf/cairo-perf.c | 7 +++++++
1 files changed, 7 insertions(+)
New commits:
diff-tree 383e9d5368706168498a87d1b7f023f2b59c2f92 (from 7131f4e6aea11d94e38375a6be71887825008e48)
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Wed Apr 18 14:12:20 2007 +0100
cairo-perf - Check that the surface is created.
Exit(1) if we fail to create the target surface.
diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c
index 44e842b..19c9935 100644
--- a/perf/cairo-perf.c
+++ b/perf/cairo-perf.c
@@ -345,6 +345,13 @@ main (int argc, char *argv[])
perf.size, perf.size,
CAIRO_BOILERPLATE_MODE_PERF,
&target->closure);
+ if (surface == NULL) {
+ fprintf (stderr,
+ "Error: Failed to create target surface: %s",
+ target->name);
+ exit (1);
+ }
+
cairo_perf_timer_set_synchronize (target->synchronize,
target->closure);
More information about the cairo-commit
mailing list