summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/fill.cpp
diff options
context:
space:
mode:
authorBryce Harrington <b.harrington@samsung.com>2013-11-04 16:01:48 -0800
committerBryce Harrington <b.harrington@samsung.com>2013-11-04 16:01:48 -0800
commit6b7c2ceeef3e1fbf01159c7149b9a288b099fad7 (patch)
treefb7df4804792578aca60650b0559e14ec1329b38 /src/cairo-tests/fill.cpp
parent5971648318ffa0c9f8e5ad2817203daff8e6257d (diff)
Make room for skia tests to live alongside the cairo tests
Diffstat (limited to 'src/cairo-tests/fill.cpp')
-rw-r--r--src/cairo-tests/fill.cpp25
1 files changed, 25 insertions, 0 deletions
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 <stdio.h>
+#include <stdlib.h>
+#include <cairo.h>
+
+#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;
+}