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 "PathOpsTestCommon.h" | 8 #include "PathOpsTestCommon.h" |
9 | 9 |
10 class PathTest_Private { | 10 class PathTest_Private { |
(...skipping 5330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5341 path.setFillType(SkPath::kWinding_FillType); | 5341 path.setFillType(SkPath::kWinding_FillType); |
5342 path.moveTo(3, 4); | 5342 path.moveTo(3, 4); |
5343 path.cubicTo(0, 6, 6, 1, 4, 2); | 5343 path.cubicTo(0, 6, 6, 1, 4, 2); |
5344 path.close(); | 5344 path.close(); |
5345 pathB.setFillType(SkPath::kWinding_FillType); | 5345 pathB.setFillType(SkPath::kWinding_FillType); |
5346 pathB.moveTo(1, 6); | 5346 pathB.moveTo(1, 6); |
5347 pathB.cubicTo(2, 4, 4, 3, 6, 0); | 5347 pathB.cubicTo(2, 4, 4, 3, 6, 0); |
5348 pathB.close(); | 5348 pathB.close(); |
5349 // DEBUG_UNDER_DEVELOPMENT cubics_d3 disable expectation check for now | 5349 // DEBUG_UNDER_DEVELOPMENT cubics_d3 disable expectation check for now |
5350 // fails because segment 3 is marked as unorderable ? | 5350 // fails because segment 3 is marked as unorderable ? |
5351 testPathOpCheck(reporter, path, pathB, kDifference_SkPathOp, filename, !FLAG
S_runFail); | 5351 testPathOp(reporter, path, pathB, kDifference_SkPathOp, filename); |
5352 } | 5352 } |
5353 | 5353 |
5354 static void cubics_o(skiatest::Reporter* reporter, const char* filename) { | 5354 static void cubics_o(skiatest::Reporter* reporter, const char* filename) { |
5355 SkPath path, pathB; | 5355 SkPath path, pathB; |
5356 path.setFillType(SkPath::kWinding_FillType); | 5356 path.setFillType(SkPath::kWinding_FillType); |
5357 path.moveTo(1, 4); | 5357 path.moveTo(1, 4); |
5358 path.cubicTo(2, 6, 5, 0, 5, 3); | 5358 path.cubicTo(2, 6, 5, 0, 5, 3); |
5359 path.close(); | 5359 path.close(); |
5360 pathB.setFillType(SkPath::kWinding_FillType); | 5360 pathB.setFillType(SkPath::kWinding_FillType); |
5361 pathB.moveTo(0, 5); | 5361 pathB.moveTo(0, 5); |
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6542 static struct TestDesc repTests[] = { | 6542 static struct TestDesc repTests[] = { |
6543 TEST(loops44i), | 6543 TEST(loops44i), |
6544 TEST(loops45i), | 6544 TEST(loops45i), |
6545 TEST(loops46i), | 6545 TEST(loops46i), |
6546 }; | 6546 }; |
6547 | 6547 |
6548 DEF_TEST(PathOpsRepOp, reporter) { | 6548 DEF_TEST(PathOpsRepOp, reporter) { |
6549 for (int index = 0; index < 2; ++index) | 6549 for (int index = 0; index < 2; ++index) |
6550 RunTestSet(reporter, repTests, SK_ARRAY_COUNT(repTests), nullptr, nullptr, n
ullptr, false); | 6550 RunTestSet(reporter, repTests, SK_ARRAY_COUNT(repTests), nullptr, nullptr, n
ullptr, false); |
6551 } | 6551 } |
OLD | NEW |