summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/fill.cpp
diff options
context:
space:
mode:
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;
+}