summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/roundrect.cpp
diff options
context:
space:
mode:
authorBryce Harrington <b.harrington@samsung.com>2014-04-24 00:14:09 -0700
committerBryce Harrington <b.harrington@samsung.com>2014-04-24 00:14:09 -0700
commite391ae2091be6d736dee7734b0a9e4c2beaddef5 (patch)
treeea5989326b67963bc80c7272b54d2f44b0a4a232 /src/cairo-tests/roundrect.cpp
parentcef0f06a4d8105d31af57f3dace28d4e92cbbeb8 (diff)
Add cairoRandomizeColor and skiaRandomizeColor
Diffstat (limited to 'src/cairo-tests/roundrect.cpp')
-rw-r--r--src/cairo-tests/roundrect.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-tests/roundrect.cpp b/src/cairo-tests/roundrect.cpp
index 2bc1574..7826ead 100644
--- a/src/cairo-tests/roundrect.cpp
+++ b/src/cairo-tests/roundrect.cpp
@@ -6,6 +6,7 @@
#include <cairo.h>
#include "caskbench.h"
+#include "cairo-shapes.h"
int
ca_setup_roundrect(caskbench_context_t *ctx)
@@ -41,7 +42,7 @@ ca_test_roundrect(caskbench_context_t *ctx)
cairo_t *cr = ctx->cairo_cr;
for (i=0; i<ctx->size; i++) {
- randomize_color (cr);
+ cairoRandomizeColor(ctx);
x = 10 + trunc( (((double)ctx->canvas_width-20.0)*rand())/RAND_MAX );
y = 10 + trunc( (((double)ctx->canvas_height-20.0)*rand())/RAND_MAX );