summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/roundrect.cpp
diff options
context:
space:
mode:
authorBryce Harrington <bryce@bryceharrington.org>2014-04-03 19:23:17 -0700
committerBryce Harrington <bryce@bryceharrington.org>2014-04-03 19:23:17 -0700
commit345447219d3abfcea89848aa6cc4851d0208f74a (patch)
treec41d81a21e7816b4416cfec13e9687b323bac0ff /src/cairo-tests/roundrect.cpp
parent76c15f31ce0ee91fc77de870abe29c875fa7259c (diff)
roundrect: Use the MSAA-optimized cairo_rounded_rectangle API
Diffstat (limited to 'src/cairo-tests/roundrect.cpp')
-rw-r--r--src/cairo-tests/roundrect.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cairo-tests/roundrect.cpp b/src/cairo-tests/roundrect.cpp
index 8bd4f5b..6071f9c 100644
--- a/src/cairo-tests/roundrect.cpp
+++ b/src/cairo-tests/roundrect.cpp
@@ -44,7 +44,10 @@ ca_test_roundrect(caskbench_context_t *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 );
- rounded_rectangle (cr, x, y, 100, 40, 4);
+ //rounded_rectangle (cr, x, y, 100, 40, 4);
+
+ // TODO: This requires cairogles
+ cairo_rounded_rectangle (cr, x, y, 100, 40, 4, 4, 4, 4);
line_width = trunc( ((double)ctx->size*rand())/RAND_MAX ) + 1;
cairo_set_line_width (cr, line_width);