diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2013-11-08 14:20:45 -0800 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2013-11-08 14:20:45 -0800 |
| commit | 26daa3b949f4d0cf6b370972afbc827aaf181ea7 (patch) | |
| tree | 88f498be6799356da001da88e1772962a3ce7efb /src/skia-tests/stroke.cpp | |
| parent | d1b294eecc1bcc04524ac9dafde81e40334da530 (diff) | |
Make the test complexity a control variable
Diffstat (limited to 'src/skia-tests/stroke.cpp')
| -rw-r--r-- | src/skia-tests/stroke.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/skia-tests/stroke.cpp b/src/skia-tests/stroke.cpp index 15bf563..fe2b095 100644 --- a/src/skia-tests/stroke.cpp +++ b/src/skia-tests/stroke.cpp @@ -24,9 +24,9 @@ sk_test_stroke(caskbench_context_t *ctx) int i, x, w, prev_w; x = 0; prev_w = 0; - for (i=0; i<32; i++) { + for (i=0; i<ctx->size; i++) { ctx->paint->setColor(rand()); - w = (32.0*rand())/RAND_MAX + 1; + w = ((double)ctx->size*rand())/RAND_MAX + 1; x += 4 + (prev_w + w)/2.0; ctx->paint->setStrokeWidth(w); ctx->canvas->drawLine(x,10, x,70, *(ctx->paint)); |