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

Unified Diff: tests/PathOpsOpLoopThreadedTest.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/PathOpsOpCubicThreadedTest.cpp ('k') | tests/PathOpsOpRectThreadedTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathOpsOpLoopThreadedTest.cpp
diff --git a/tests/PathOpsOpLoopThreadedTest.cpp b/tests/PathOpsOpLoopThreadedTest.cpp
index 3e43b9f75d5f3bb2e17384854734736d59d12573..6a54b47ee465ba647f1d6b0b8b6fe89551dd850f 100755
--- a/tests/PathOpsOpLoopThreadedTest.cpp
+++ b/tests/PathOpsOpLoopThreadedTest.cpp
@@ -53,7 +53,7 @@ static void testOpLoopsMain(PathOpsThreadState* data) {
SkPath pathA, pathB;
if (progress) {
char* str = pathStr;
- const int loopNo = 7;
+ const int loopNo = 12;
str += sprintf(str, "static void loop%d(skiatest::Reporter* reporter,"
" const char* filename) {\n", loopNo);
str += sprintf(str, " SkPath path, pathB;\n");
@@ -93,7 +93,7 @@ static void testOpLoopsMain(PathOpsThreadState* data) {
}
DEF_TEST(PathOpsOpLoopsThreaded, reporter) {
- initializeTests(reporter, "cubicOp");
+ initializeTests(reporter, "loopOp");
PathOpsThreadedTestRunner testRunner(reporter);
for (int a = 0; a < 6; ++a) { // outermost
for (int b = a + 1; b < 7; ++b) {
@@ -108,27 +108,5 @@ DEF_TEST(PathOpsOpLoopsThreaded, reporter) {
}
finish:
testRunner.render();
- ShowTestArray();
-}
-
-DEF_TEST(PathOpsOpLoops, reporter) {
- initializeTests(reporter, "cubicOp");
- PathOpsThreadState state;
- state.fReporter = reporter;
- SkBitmap bitmap;
- state.fBitmap = &bitmap;
- char pathStr[PATH_STR_SIZE];
- state.fPathStr = pathStr;
- for (state.fA = 0; state.fA < 6; ++state.fA) { // outermost
- for (state.fB = state.fA + 1; state.fB < 7; ++state.fB) {
- for (state.fC = 0 ; state.fC < 6; ++state.fC) {
- for (state.fD = state.fC + 1; state.fD < 7; ++state.fD) {
- testOpLoopsMain(&state);
- }
- }
- if (!reporter->allowExtendedTest()) goto finish;
- }
- }
-finish:
- ShowTestArray();
+ ShowTestArray("loopOp");
}
« no previous file with comments | « tests/PathOpsOpCubicThreadedTest.cpp ('k') | tests/PathOpsOpRectThreadedTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698