diff options
author | caryclark <caryclark@google.com> | 2016-02-09 14:32:42 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-09 14:32:42 -0800 |
commit | 58f4e1d2fd9d730cb207a02e3a60e09e49480d97 (patch) | |
tree | 33922b757e35d552fe1ee7d1157e6199a34de5e5 /gm/arcto.cpp | |
parent | 86c6c4935171a1d2d6a9ffbff37ec6dac1326614 (diff) |
make test consistent
Don't pass rand() to a function as a pair of
parameters, since the order of evaluation
is unknown
TBR=robertphillips@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1682203002
Review URL: https://codereview.chromium.org/1682203002
Diffstat (limited to 'gm/arcto.cpp')
-rw-r--r-- | gm/arcto.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gm/arcto.cpp b/gm/arcto.cpp index 432b889fb8..166c167ad8 100644 --- a/gm/arcto.cpp +++ b/gm/arcto.cpp @@ -109,7 +109,7 @@ DEF_SIMPLE_GM(arcto, canvas, 500, 600) { /* The test below generates a reference image using SVG. To compare the result for correctness, enable the define below and then view the generated SVG in a browser. */ -#define GENERATE_SVG_REFERENCE 0 +#define GENERATE_SVG_REFERENCE 01 #if GENERATE_SVG_REFERENCE #include "SkOSFile.h" @@ -148,7 +148,9 @@ DEF_SIMPLE_GM(parsedpaths, canvas, kParsePathTestDimension, kParsePathTestDimens do { SkPath path; SkString spec; - spec.printf("M %d,%d\n", rand.nextRangeU(30, 70), rand.nextRangeU(30, 70)); + uint32_t y = rand.nextRangeU(30, 70); + uint32_t x = rand.nextRangeU(30, 70); + spec.printf("M %d,%d\n", x, y); uint32_t count = rand.nextRangeU(0, 10); for (uint32_t i = 0; i < count; ++i) { spec.append(MakeRandomParsePathPiece(&rand)); |