summaryrefslogtreecommitdiffstatsci
path: root/src/skia-tests/stroke.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/skia-tests/stroke.cpp')
-rw-r--r--src/skia-tests/stroke.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/skia-tests/stroke.cpp b/src/skia-tests/stroke.cpp
index fe2b095..ee74bb4 100644
--- a/src/skia-tests/stroke.cpp
+++ b/src/skia-tests/stroke.cpp
@@ -9,12 +9,14 @@
#include "caskbench.h"
static SkRect r;
+static int line_length;
int
sk_setup_stroke(caskbench_context_t *ctx)
{
ctx->paint->setARGB(255, 255, 255, 255);
r.set(10, 10, 20, 20);
+ line_length = 60;
return 1;
}
@@ -29,7 +31,7 @@ sk_test_stroke(caskbench_context_t *ctx)
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));
+ ctx->canvas->drawLine(x,10, x,10+line_length, *(ctx->paint));
prev_w = w;
}