diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2014-04-24 00:14:09 -0700 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2014-04-24 00:14:09 -0700 |
| commit | e391ae2091be6d736dee7734b0a9e4c2beaddef5 (patch) | |
| tree | ea5989326b67963bc80c7272b54d2f44b0a4a232 /src/cairo-tests/bubbles.cpp | |
| parent | cef0f06a4d8105d31af57f3dace28d4e92cbbeb8 (diff) | |
Add cairoRandomizeColor and skiaRandomizeColor
Diffstat (limited to 'src/cairo-tests/bubbles.cpp')
| -rw-r--r-- | src/cairo-tests/bubbles.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-tests/bubbles.cpp b/src/cairo-tests/bubbles.cpp index c3aca0f..001451f 100644 --- a/src/cairo-tests/bubbles.cpp +++ b/src/cairo-tests/bubbles.cpp @@ -5,6 +5,7 @@ #include <cairo.h> #include "caskbench.h" +#include "cairo-shapes.h" static int max_dim; @@ -27,7 +28,7 @@ ca_test_bubbles(caskbench_context_t *ctx) cairo_t *cr = ctx->cairo_cr; for (i=0; i<ctx->size; i++) { - randomize_color (cr); + cairoRandomizeColor(ctx); r = ((double)max_dim*rand())/RAND_MAX + 1; x = (0.5*(double)ctx->canvas_width*rand())/RAND_MAX; |