| 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 #include "TestClassDef.h" | |
| 9 | 8 |
| 10 #define TEST(name) { name, #name } | 9 #define TEST(name) { name, #name } |
| 11 | 10 |
| 12 static void cubicOp1d(skiatest::Reporter* reporter) { | 11 static void cubicOp1d(skiatest::Reporter* reporter) { |
| 13 SkPath path, pathB; | 12 SkPath path, pathB; |
| 14 path.setFillType(SkPath::kWinding_FillType); | 13 path.setFillType(SkPath::kWinding_FillType); |
| 15 path.moveTo(0,1); | 14 path.moveTo(0,1); |
| 16 path.cubicTo(0,2, 1,0, 1,0); | 15 path.cubicTo(0,2, 1,0, 1,0); |
| 17 path.close(); | 16 path.close(); |
| 18 pathB.setFillType(SkPath::kWinding_FillType); | 17 pathB.setFillType(SkPath::kWinding_FillType); |
| (...skipping 3280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3299 } | 3298 } |
| 3300 RunTestSet(reporter, tests, testCount, firstTest, stopTest, runReverse); | 3299 RunTestSet(reporter, tests, testCount, firstTest, stopTest, runReverse); |
| 3301 if (!runSubTestsFirst) { | 3300 if (!runSubTestsFirst) { |
| 3302 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run
Reverse); | 3301 RunTestSet(reporter, subTests, subTestCount, firstSubTest, stopTest, run
Reverse); |
| 3303 } | 3302 } |
| 3304 #ifdef SK_DEBUG | 3303 #ifdef SK_DEBUG |
| 3305 SkPathOpsDebug::gMaxWindSum = SK_MaxS32; | 3304 SkPathOpsDebug::gMaxWindSum = SK_MaxS32; |
| 3306 SkPathOpsDebug::gMaxWindValue = SK_MaxS32; | 3305 SkPathOpsDebug::gMaxWindValue = SK_MaxS32; |
| 3307 #endif | 3306 #endif |
| 3308 } | 3307 } |
| OLD | NEW |