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 5037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5048 | 5048 |
5049 path.moveTo(SkBits2Float(0x42f60000), SkBits2Float(0x00000000)); // 123, 0 | 5049 path.moveTo(SkBits2Float(0x42f60000), SkBits2Float(0x00000000)); // 123, 0 |
5050 path.lineTo(SkBits2Float(0x4c00001e), SkBits2Float(0x00000000)); // 3.35546e+07
f, 0 | 5050 path.lineTo(SkBits2Float(0x4c00001e), SkBits2Float(0x00000000)); // 3.35546e+07
f, 0 |
5051 path.lineTo(SkBits2Float(0x4c00001e), SkBits2Float(0x00000000)); // 3.35546e+07
f, 0 | 5051 path.lineTo(SkBits2Float(0x4c00001e), SkBits2Float(0x00000000)); // 3.35546e+07
f, 0 |
5052 path.lineTo(SkBits2Float(0x42f60000), SkBits2Float(0x00000000)); // 123, 0 | 5052 path.lineTo(SkBits2Float(0x42f60000), SkBits2Float(0x00000000)); // 123, 0 |
5053 path.close(); | 5053 path.close(); |
5054 | 5054 |
5055 REPORTER_ASSERT(reporter, !Simplify(path, &path)); | 5055 REPORTER_ASSERT(reporter, !Simplify(path, &path)); |
5056 } | 5056 } |
5057 | 5057 |
| 5058 static void fuzz_59(skiatest::Reporter* reporter, const char* filename) { |
| 5059 SkPath path; |
| 5060 path.moveTo(SkBits2Float(0x430c0000), SkBits2Float(0xce58f41c)); // 140, -9.099
69e+08f |
| 5061 path.lineTo(SkBits2Float(0x43480000), SkBits2Float(0xce58f419)); // 200, -9.099
69e+08f |
| 5062 path.lineTo(SkBits2Float(0x42200000), SkBits2Float(0xce58f41b)); // 40, -9.0996
9e+08f |
| 5063 path.lineTo(SkBits2Float(0x43700000), SkBits2Float(0xce58f41b)); // 240, -9.099
69e+08f |
| 5064 path.lineTo(SkBits2Float(0x428c0000), SkBits2Float(0xce58f419)); // 70, -9.0996
9e+08f |
| 5065 path.lineTo(SkBits2Float(0x430c0000), SkBits2Float(0xce58f41c)); // 140, -9.099
69e+08f |
| 5066 path.close(); |
| 5067 REPORTER_ASSERT(reporter, !Simplify(path, &path)); |
| 5068 } |
| 5069 |
5058 static void (*skipTest)(skiatest::Reporter* , const char* filename) = 0; | 5070 static void (*skipTest)(skiatest::Reporter* , const char* filename) = 0; |
5059 static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0; | 5071 static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0; |
5060 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; | 5072 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; |
5061 | 5073 |
5062 static TestDesc tests[] = { | 5074 static TestDesc tests[] = { |
| 5075 TEST(fuzz_59), |
5063 TEST(fuzz_twister2), | 5076 TEST(fuzz_twister2), |
5064 TEST(fuzz_twister), | 5077 TEST(fuzz_twister), |
5065 TEST(fuzz994s_3414), | 5078 TEST(fuzz994s_3414), |
5066 TEST(fuzz994s_11), | 5079 TEST(fuzz994s_11), |
5067 TEST(cr514118), | 5080 TEST(cr514118), |
5068 TEST(fuzz864a), | 5081 TEST(fuzz864a), |
5069 TEST(testQuads65), | 5082 TEST(testQuads65), |
5070 TEST(testIssue3838_3), | 5083 TEST(testIssue3838_3), |
5071 TEST(testIssue3838), | 5084 TEST(testIssue3838), |
5072 TEST(testArc), | 5085 TEST(testArc), |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5507 | 5520 |
5508 DEF_TEST(PathOpsSimplify, reporter) { | 5521 DEF_TEST(PathOpsSimplify, reporter) { |
5509 if (runSubTests && runSubTestsFirst) { | 5522 if (runSubTests && runSubTestsFirst) { |
5510 RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop
Test, runReverse); | 5523 RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop
Test, runReverse); |
5511 } | 5524 } |
5512 RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev
erse); | 5525 RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev
erse); |
5513 if (runSubTests && !runSubTestsFirst) { | 5526 if (runSubTests && !runSubTestsFirst) { |
5514 RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop
Test, runReverse); | 5527 RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop
Test, runReverse); |
5515 } | 5528 } |
5516 } | 5529 } |
OLD | NEW |