Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: gm/arcto.cpp

Issue 1682203002: make test consistent (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/arcto.cpp
diff --git a/gm/arcto.cpp b/gm/arcto.cpp
index 432b889fb8dcfe0a55be4dd59db6a0d87c720a56..166c167ad8feb6d3f8e1ac46fecef6e0b6968db0 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));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698