diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2014-04-14 14:55:58 -0700 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2014-04-14 23:38:34 -0700 |
| commit | 0be3bdaad04e0c3bd74a1f014022c86dae1282e0 (patch) | |
| tree | 3c16b23172030a48ff545df45b9576e365054385 /src/cairo-tests/roundrect.cpp | |
| parent | 6da2beed0ac48cc4b29e1fd960b39060e69ed50d (diff) | |
cmake: Add cmake option to enable use of the cairogles fork's API
cairogles includes support for shadow, many GL performance enhancements,
and a hardware-accelerated round rectangle routine when using MSAA.
Diffstat (limited to 'src/cairo-tests/roundrect.cpp')
| -rw-r--r-- | src/cairo-tests/roundrect.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-tests/roundrect.cpp b/src/cairo-tests/roundrect.cpp index 6071f9c..2b87dac 100644 --- a/src/cairo-tests/roundrect.cpp +++ b/src/cairo-tests/roundrect.cpp @@ -44,11 +44,11 @@ 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); - - // TODO: This requires cairogles +#if USE_CAIROGLES cairo_rounded_rectangle (cr, x, y, 100, 40, 4, 4, 4, 4); - +#else + rounded_rectangle (cr, x, y, 100, 40, 4); +#endif line_width = trunc( ((double)ctx->size*rand())/RAND_MAX ) + 1; cairo_set_line_width (cr, line_width); |