From 6b7c2ceeef3e1fbf01159c7149b9a288b099fad7 Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Mon, 4 Nov 2013 16:01:48 -0800 Subject: Make room for skia tests to live alongside the cairo tests --- src/cairo-tests/fill.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/cairo-tests/fill.cpp (limited to 'src/cairo-tests/fill.cpp') diff --git a/src/cairo-tests/fill.cpp b/src/cairo-tests/fill.cpp new file mode 100644 index 0000000..d3a6bef --- /dev/null +++ b/src/cairo-tests/fill.cpp @@ -0,0 +1,25 @@ +#include +#include +#include + +#include "caskbench.h" + +int +ca_setup_fill(cairo_t *cr) +{ + cairo_arc (cr, 40, 40, 30, 0, 2*M_PI); + return 1; +} + +void +ca_teardown_fill(void) +{ +} + +int +ca_test_fill(cairo_t *cr) +{ + randomize_color (cr); + cairo_fill_preserve (cr); + return 1; +} -- cgit v1.3.1-4-g156e