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
This commit is contained in:
parent
86c6c49351
commit
58f4e1d2fd
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user