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

Unified Diff: tests/PathOpsSimplifyQuadThreadedTest.cpp

Issue 1037953004: add conics to path ops (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: turn off pathops specific debuggging Created 5 years, 8 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 | « tests/PathOpsSimplifyFailTest.cpp ('k') | tests/PathOpsSimplifyTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathOpsSimplifyQuadThreadedTest.cpp
diff --git a/tests/PathOpsSimplifyQuadThreadedTest.cpp b/tests/PathOpsSimplifyQuadThreadedTest.cpp
index 3c92cca217cdac77d99faa57a25117f0a15fb693..047aa6b7951d7c6bb4e1319603289bd1fe1ecff8 100644
--- a/tests/PathOpsSimplifyQuadThreadedTest.cpp
+++ b/tests/PathOpsSimplifyQuadThreadedTest.cpp
@@ -49,8 +49,11 @@ static void testSimplifyQuadsMain(PathOpsThreadState* data)
SkIntToScalar(hx), SkIntToScalar(hy));
path.close();
if (progress) {
- // gdb: set print elements 400
+ static int quadTest = 65;
char* str = pathStr;
+ str += sprintf(str, "static void testQuads%d(skiatest::Reporter* reporter,"
+ "const char* filename) {\n", quadTest);
+ str += sprintf(str, " SkPath path;\n");
str += sprintf(str, " path.moveTo(%d, %d);\n", ax, ay);
str += sprintf(str, " path.quadTo(%d, %d, %d, %d);\n", bx, by, cx, cy);
str += sprintf(str, " path.lineTo(%d, %d);\n", dx, dy);
@@ -59,6 +62,8 @@ static void testSimplifyQuadsMain(PathOpsThreadState* data)
str += sprintf(str, " path.lineTo(%d, %d);\n", fx, fy);
str += sprintf(str, " path.quadTo(%d, %d, %d, %d);\n", gx, gy, hx, hy);
str += sprintf(str, " path.close();\n");
+ str += sprintf(str, " testSimplify(reporter, path, filename);\n");
+ str += sprintf(str, "}\n");
outputProgress(state.fPathStr, pathStr, SkPath::kWinding_FillType);
}
testSimplify(path, false, out, state, pathStr);
@@ -90,5 +95,5 @@ DEF_TEST(PathOpsSimplifyQuadsThreaded, reporter) {
}
finish:
testRunner.render();
- ShowTestArray();
+ ShowTestArray("testQuads");
}
« no previous file with comments | « tests/PathOpsSimplifyFailTest.cpp ('k') | tests/PathOpsSimplifyTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698