summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/bubbles.cpp
diff options
context:
space:
mode:
authorBryce Harrington <b.harrington@samsung.com>2013-11-26 23:18:41 -0800
committerBryce Harrington <bryce@canonical.com>2013-11-26 23:20:36 -0800
commit13c56c1327eecb18a3d87fa9a3b1af3c9a3d8c45 (patch)
tree8fb7d31c5e917052ae716e7f98b289600b845a5f /src/cairo-tests/bubbles.cpp
parentb2107b9ef476f0b2baa353b3efc7db9055138446 (diff)
Make context variable names more explicit about cairo / skia
Diffstat (limited to 'src/cairo-tests/bubbles.cpp')
-rw-r--r--src/cairo-tests/bubbles.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cairo-tests/bubbles.cpp b/src/cairo-tests/bubbles.cpp
index 1b55558..b008361 100644
--- a/src/cairo-tests/bubbles.cpp
+++ b/src/cairo-tests/bubbles.cpp
@@ -22,14 +22,15 @@ int
ca_test_bubbles(caskbench_context_t *ctx)
{
int i, x, y, r;
+ cairo_t *cr = ctx->cairo_cr;
for (i=0; i<ctx->size; i++) {
r = ((double)max_dim*rand())/RAND_MAX + 1;
x = (0.5*(double)ctx->canvas_width*rand())/RAND_MAX;
y = (0.5*(double)ctx->canvas_height*rand())/RAND_MAX;
- randomize_color (ctx->cr);
- cairo_arc (ctx->cr, x, y, r, 0, 2*M_PI);
- cairo_fill (ctx->cr);
+ randomize_color (cr);
+ cairo_arc (cr, x, y, r, 0, 2*M_PI);
+ cairo_fill (cr);
}
return 1;