diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2013-11-12 17:43:33 -0800 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2013-11-13 13:19:18 -0800 |
| commit | 8eb35dc7db018b9187c30454604fcfd88a8dadca (patch) | |
| tree | 9de49eb6b28f1b68cef554c439a9fd1ee7d8be59 /src/cairo-tests/stroke.cpp | |
| parent | 2a225586241a5a77afbc555d7ee77fbbf420cc1c (diff) | |
Add a --cairo-surface-type parameter to choose image or glx surfaces
This eventually will need replaced with something better, but should do
for now.
Diffstat (limited to 'src/cairo-tests/stroke.cpp')
| -rw-r--r-- | src/cairo-tests/stroke.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cairo-tests/stroke.cpp b/src/cairo-tests/stroke.cpp index 1ebf823..1a47271 100644 --- a/src/cairo-tests/stroke.cpp +++ b/src/cairo-tests/stroke.cpp @@ -4,9 +4,12 @@ #include "caskbench.h" +static int line_length; + int ca_setup_stroke(caskbench_context_t *ctx) { + line_length = 60; return 1; } @@ -26,7 +29,7 @@ ca_test_stroke(caskbench_context_t *ctx) w = ((double)ctx->size*rand())/RAND_MAX + 1; x += 4 + (prev_w + w)/2.0; cairo_move_to (ctx->cr, x, 10); - cairo_line_to (ctx->cr, x, 70); + cairo_line_to (ctx->cr, x, 10 + line_length); cairo_set_line_width (ctx->cr, w); cairo_stroke (ctx->cr); prev_w = w; |