| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 #include "PathOpsExtendedTest.h" | 7 #include "PathOpsExtendedTest.h" |
| 8 | 8 |
| 9 #define TEST(name) { name, #name } | 9 #define TEST(name) { name, #name } |
| 10 | 10 |
| (...skipping 5068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5079 static const size_t subTestCount = SK_ARRAY_COUNT(subTests); | 5079 static const size_t subTestCount = SK_ARRAY_COUNT(subTests); |
| 5080 | 5080 |
| 5081 static void (*firstSubTest)(skiatest::Reporter* , const char* filename) = 0; | 5081 static void (*firstSubTest)(skiatest::Reporter* , const char* filename) = 0; |
| 5082 | 5082 |
| 5083 static bool runSubTests = false; | 5083 static bool runSubTests = false; |
| 5084 static bool runSubTestsFirst = false; | 5084 static bool runSubTestsFirst = false; |
| 5085 static bool runReverse = false; | 5085 static bool runReverse = false; |
| 5086 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; | 5086 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; |
| 5087 | 5087 |
| 5088 DEF_TEST(PathOpsSimplify, reporter) { | 5088 DEF_TEST(PathOpsSimplify, reporter) { |
| 5089 #ifdef SK_DEBUG | |
| 5090 SkPathOpsDebug::gMaxWindSum = 4; | |
| 5091 SkPathOpsDebug::gMaxWindValue = 4; | |
| 5092 #endif | |
| 5093 if (runSubTests && runSubTestsFirst) { | 5089 if (runSubTests && runSubTestsFirst) { |
| 5094 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run
Reverse); | 5090 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run
Reverse); |
| 5095 } | 5091 } |
| 5096 RunTestSet(reporter, tests, testCount, firstTest, stopTest, runReverse); | 5092 RunTestSet(reporter, tests, testCount, firstTest, stopTest, runReverse); |
| 5097 if (runSubTests && !runSubTestsFirst) { | 5093 if (runSubTests && !runSubTestsFirst) { |
| 5098 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run
Reverse); | 5094 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run
Reverse); |
| 5099 } | 5095 } |
| 5100 #ifdef SK_DEBUG | |
| 5101 SkPathOpsDebug::gMaxWindSum = SK_MaxS32; | |
| 5102 SkPathOpsDebug::gMaxWindValue = SK_MaxS32; | |
| 5103 #endif | |
| 5104 } | 5096 } |
| OLD | NEW |