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 6804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6815 path.moveTo(SkBits2Float(0x68305b2d), SkBits2Float(0xf0682955)); // 3.33127e+24
f, -2.87402e+29f | 6815 path.moveTo(SkBits2Float(0x68305b2d), SkBits2Float(0xf0682955)); // 3.33127e+24
f, -2.87402e+29f |
6816 path.conicTo(SkBits2Float(0x212a1f5b), SkBits2Float(0x8cef552a), SkBits2Float(0x
295b2d2a), SkBits2Float(0x68210368), SkBits2Float(0x7bc05508)); // 5.76397e-19f
, -3.6875e-31f, 4.86669e-14f, 3.04146e+24f, 1.99729e+36f | 6816 path.conicTo(SkBits2Float(0x212a1f5b), SkBits2Float(0x8cef552a), SkBits2Float(0x
295b2d2a), SkBits2Float(0x68210368), SkBits2Float(0x7bc05508)); // 5.76397e-19f
, -3.6875e-31f, 4.86669e-14f, 3.04146e+24f, 1.99729e+36f |
6817 path.lineTo(SkBits2Float(0x68305b2d), SkBits2Float(0xf0682955)); // 3.33127e+24
f, -2.87402e+29f | 6817 path.lineTo(SkBits2Float(0x68305b2d), SkBits2Float(0xf0682955)); // 3.33127e+24
f, -2.87402e+29f |
6818 path.close(); | 6818 path.close(); |
6819 path.moveTo(SkBits2Float(0x68305b2d), SkBits2Float(0xf0682955)); // 3.33127e+24
f, -2.87402e+29f | 6819 path.moveTo(SkBits2Float(0x68305b2d), SkBits2Float(0xf0682955)); // 3.33127e+24
f, -2.87402e+29f |
6820 path.lineTo(SkBits2Float(0x555b6829), SkBits2Float(0x6c212a8c)); // 1.50775e+13
f, 7.79352e+26f | 6820 path.lineTo(SkBits2Float(0x555b6829), SkBits2Float(0x6c212a8c)); // 1.50775e+13
f, 7.79352e+26f |
6821 path.conicTo(SkBits2Float(0x084b0321), SkBits2Float(0x6ac07b2a), SkBits2Float(0x
395b2d7a), SkBits2Float(0x5bf05568), SkBits2Float(0x212a3a8c)); // 6.10918e-34f
, 1.16348e+26f, 0.000209024f, 1.35296e+17f, 5.76757e-19f | 6821 path.conicTo(SkBits2Float(0x084b0321), SkBits2Float(0x6ac07b2a), SkBits2Float(0x
395b2d7a), SkBits2Float(0x5bf05568), SkBits2Float(0x212a3a8c)); // 6.10918e-34f
, 1.16348e+26f, 0.000209024f, 1.35296e+17f, 5.76757e-19f |
6822 path.lineTo(SkBits2Float(0x8c558c55), SkBits2Float(0x212a1f2a)); // -1.64512e-3
1f, 5.76395e-19f | 6822 path.lineTo(SkBits2Float(0x8c558c55), SkBits2Float(0x212a1f2a)); // -1.64512e-3
1f, 5.76395e-19f |
6823 | 6823 |
6824 SkPath path2(path); | 6824 SkPath path2(path); |
6825 testPathOpFailSkipAssert(reporter, path1, path2, (SkPathOp) 0, filename); | 6825 testPathOpSkipAssert(reporter, path1, path2, (SkPathOp) 0, filename); |
6826 } | 6826 } |
6827 | 6827 |
6828 static void fuzz763_17(skiatest::Reporter* reporter, const char* filename) { | 6828 static void fuzz763_17(skiatest::Reporter* reporter, const char* filename) { |
6829 SkPath path; | 6829 SkPath path; |
6830 path.setFillType((SkPath::FillType) 0); | 6830 path.setFillType((SkPath::FillType) 0); |
6831 | 6831 |
6832 SkPath path1(path); | 6832 SkPath path1(path); |
6833 path.reset(); | 6833 path.reset(); |
6834 path.setFillType((SkPath::FillType) 0); | 6834 path.setFillType((SkPath::FillType) 0); |
6835 path.moveTo(SkBits2Float(0x68556829), SkBits2Float(0x555b2d29)); // 4.03114e+24
f, 1.50617e+13f | 6835 path.moveTo(SkBits2Float(0x68556829), SkBits2Float(0x555b2d29)); // 4.03114e+24
f, 1.50617e+13f |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6969 path.conicTo(SkBits2Float(0x084b0321), SkBits2Float(0x6ac07b2a), SkBits2Float(0x
395b2d7a), SkBits2Float(0xf05b5568), SkBits2Float(0x212a3a8c)); // 6.10918e-34f
, 1.16348e+26f, 0.000209024f, -2.71522e+29f, 5.76757e-19f | 6969 path.conicTo(SkBits2Float(0x084b0321), SkBits2Float(0x6ac07b2a), SkBits2Float(0x
395b2d7a), SkBits2Float(0xf05b5568), SkBits2Float(0x212a3a8c)); // 6.10918e-34f
, 1.16348e+26f, 0.000209024f, -2.71522e+29f, 5.76757e-19f |
6970 path.conicTo(SkBits2Float(0x290321d9), SkBits2Float(0x555b2d68), SkBits2Float(0x
2a8c558c), SkBits2Float(0x2abe2a1f), SkBits2Float(0x7bc00321)); // 2.91172e-14f
, 1.50618e+13f, 2.49284e-13f, 3.378e-13f, 1.99397e+36f | 6970 path.conicTo(SkBits2Float(0x290321d9), SkBits2Float(0x555b2d68), SkBits2Float(0x
2a8c558c), SkBits2Float(0x2abe2a1f), SkBits2Float(0x7bc00321)); // 2.91172e-14f
, 1.50618e+13f, 2.49284e-13f, 3.378e-13f, 1.99397e+36f |
6971 path.lineTo(SkBits2Float(0x68395b2d), SkBits2Float(0xf0682955)); // 3.50128e+24
f, -2.87402e+29f | 6971 path.lineTo(SkBits2Float(0x68395b2d), SkBits2Float(0xf0682955)); // 3.50128e+24
f, -2.87402e+29f |
6972 path.close(); | 6972 path.close(); |
6973 path.moveTo(SkBits2Float(0x68395b2d), SkBits2Float(0xf0682955)); // 3.50128e+24
f, -2.87402e+29f | 6973 path.moveTo(SkBits2Float(0x68395b2d), SkBits2Float(0xf0682955)); // 3.50128e+24
f, -2.87402e+29f |
6974 path.lineTo(SkBits2Float(0x8c2aed7a), SkBits2Float(0x1f2128c0)); // -1.31678e-3
1f, 3.41268e-20f | 6974 path.lineTo(SkBits2Float(0x8c2aed7a), SkBits2Float(0x1f2128c0)); // -1.31678e-3
1f, 3.41268e-20f |
6975 path.lineTo(SkBits2Float(0x68395b2d), SkBits2Float(0xf0682955)); // 3.50128e+24
f, -2.87402e+29f | 6975 path.lineTo(SkBits2Float(0x68395b2d), SkBits2Float(0xf0682955)); // 3.50128e+24
f, -2.87402e+29f |
6976 path.close(); | 6976 path.close(); |
6977 | 6977 |
6978 SkPath path2(path); | 6978 SkPath path2(path); |
6979 testPathOpFailSkipAssert(reporter, path1, path2, (SkPathOp) 0, filename); | 6979 testPathOpSkipAssert(reporter, path1, path2, (SkPathOp) 0, filename); |
6980 } | 6980 } |
6981 | 6981 |
6982 static void fuzz763_20(skiatest::Reporter* reporter, const char* filename) { | 6982 static void fuzz763_20(skiatest::Reporter* reporter, const char* filename) { |
6983 SkPath path; | 6983 SkPath path; |
6984 path.setFillType((SkPath::FillType) 0); | 6984 path.setFillType((SkPath::FillType) 0); |
6985 | 6985 |
6986 SkPath path1(path); | 6986 SkPath path1(path); |
6987 path.reset(); | 6987 path.reset(); |
6988 path.setFillType((SkPath::FillType) 0); | 6988 path.setFillType((SkPath::FillType) 0); |
6989 path.moveTo(SkBits2Float(0x68556829), SkBits2Float(0x555b2d29)); // 4.03114e+24
f, 1.50617e+13f | 6989 path.moveTo(SkBits2Float(0x68556829), SkBits2Float(0x555b2d29)); // 4.03114e+24
f, 1.50617e+13f |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7269 path.conicTo(SkBits2Float(0x084b0321), SkBits2Float(0x6ac07b2a), SkBits2Float(0x
395b2d7a), SkBits2Float(0x8c5bf055), SkBits2Float(0x1f212a3a)); // 6.10918e-34f
, 1.16348e+26f, 0.000209024f, -1.69435e-31f, 3.4128e-20f | 7269 path.conicTo(SkBits2Float(0x084b0321), SkBits2Float(0x6ac07b2a), SkBits2Float(0x
395b2d7a), SkBits2Float(0x8c5bf055), SkBits2Float(0x1f212a3a)); // 6.10918e-34f
, 1.16348e+26f, 0.000209024f, -1.69435e-31f, 3.4128e-20f |
7270 path.conicTo(SkBits2Float(0x290321d9), SkBits2Float(0x555b2d68), SkBits2Float(0x
2a8c558c), SkBits2Float(0x2a212a1f), SkBits2Float(0x7bc00321)); // 2.91172e-14f
, 1.50618e+13f, 2.49284e-13f, 1.43143e-13f, 1.99397e+36f | 7270 path.conicTo(SkBits2Float(0x290321d9), SkBits2Float(0x555b2d68), SkBits2Float(0x
2a8c558c), SkBits2Float(0x2a212a1f), SkBits2Float(0x7bc00321)); // 2.91172e-14f
, 1.50618e+13f, 2.49284e-13f, 1.43143e-13f, 1.99397e+36f |
7271 path.lineTo(SkBits2Float(0x68385b2d), SkBits2Float(0xf0682955)); // 3.48239e+24
f, -2.87402e+29f | 7271 path.lineTo(SkBits2Float(0x68385b2d), SkBits2Float(0xf0682955)); // 3.48239e+24
f, -2.87402e+29f |
7272 path.close(); | 7272 path.close(); |
7273 path.moveTo(SkBits2Float(0x68385b2d), SkBits2Float(0xf0682955)); // 3.48239e+24
f, -2.87402e+29f | 7273 path.moveTo(SkBits2Float(0x68385b2d), SkBits2Float(0xf0682955)); // 3.48239e+24
f, -2.87402e+29f |
7274 path.lineTo(SkBits2Float(0x8c2aed7a), SkBits2Float(0x1f2128c0)); // -1.31678e-3
1f, 3.41268e-20f | 7274 path.lineTo(SkBits2Float(0x8c2aed7a), SkBits2Float(0x1f2128c0)); // -1.31678e-3
1f, 3.41268e-20f |
7275 path.lineTo(SkBits2Float(0x68385b2d), SkBits2Float(0xf0682955)); // 3.48239e+24
f, -2.87402e+29f | 7275 path.lineTo(SkBits2Float(0x68385b2d), SkBits2Float(0xf0682955)); // 3.48239e+24
f, -2.87402e+29f |
7276 path.close(); | 7276 path.close(); |
7277 | 7277 |
7278 SkPath path2(path); | 7278 SkPath path2(path); |
7279 testPathOpFailSkipAssert(reporter, path1, path2, (SkPathOp) 0, filename); | 7279 testPathOpSkipAssert(reporter, path1, path2, (SkPathOp) 0, filename); |
7280 } | 7280 } |
7281 | 7281 |
7282 static void fuzz763_28(skiatest::Reporter* reporter, const char* filename) { | 7282 static void fuzz763_28(skiatest::Reporter* reporter, const char* filename) { |
7283 SkPath path; | 7283 SkPath path; |
7284 path.setFillType((SkPath::FillType) 0); | 7284 path.setFillType((SkPath::FillType) 0); |
7285 | 7285 |
7286 SkPath path1(path); | 7286 SkPath path1(path); |
7287 path.reset(); | 7287 path.reset(); |
7288 path.setFillType((SkPath::FillType) 0); | 7288 path.setFillType((SkPath::FillType) 0); |
7289 path.moveTo(SkBits2Float(0x68556829), SkBits2Float(0x555b2d29)); // 4.03114e+24
f, 1.50617e+13f | 7289 path.moveTo(SkBits2Float(0x68556829), SkBits2Float(0x555b2d29)); // 4.03114e+24
f, 1.50617e+13f |
(...skipping 17 matching lines...) Expand all Loading... |
7307 path.close(); | 7307 path.close(); |
7308 path.moveTo(SkBits2Float(0x0321081f), SkBits2Float(0x6a4b7bc0)); // 4.7323e-37f
, 6.14991e+25f | 7308 path.moveTo(SkBits2Float(0x0321081f), SkBits2Float(0x6a4b7bc0)); // 4.7323e-37f
, 6.14991e+25f |
7309 path.conicTo(SkBits2Float(0x6a4b7bc0), SkBits2Float(0x5b2d6829), SkBits2Float(0x
1f212a55), SkBits2Float(0x8ced7aba), SkBits2Float(0x3f2a212a)); // 6.14991e+25f
, 4.88097e+16f, 3.41281e-20f, -3.65895e-31f, 0.664569f | 7309 path.conicTo(SkBits2Float(0x6a4b7bc0), SkBits2Float(0x5b2d6829), SkBits2Float(0x
1f212a55), SkBits2Float(0x8ced7aba), SkBits2Float(0x3f2a212a)); // 6.14991e+25f
, 4.88097e+16f, 3.41281e-20f, -3.65895e-31f, 0.664569f |
7310 path.lineTo(SkBits2Float(0x5b2d212d), SkBits2Float(0x2d556829)); // 4.87316e+16
f, 1.21308e-11f | 7310 path.lineTo(SkBits2Float(0x5b2d212d), SkBits2Float(0x2d556829)); // 4.87316e+16
f, 1.21308e-11f |
7311 path.moveTo(SkBits2Float(0x68552968), SkBits2Float(0x5568295b)); // 4.02651e+24
f, 1.5954e+13f | 7311 path.moveTo(SkBits2Float(0x68552968), SkBits2Float(0x5568295b)); // 4.02651e+24
f, 1.5954e+13f |
7312 path.moveTo(SkBits2Float(0x5b2d2968), SkBits2Float(0x212a8c55)); // 4.87407e+16
f, 5.7784e-19f | 7312 path.moveTo(SkBits2Float(0x5b2d2968), SkBits2Float(0x212a8c55)); // 4.87407e+16
f, 5.7784e-19f |
7313 path.moveTo(SkBits2Float(0x0321081f), SkBits2Float(0x6a4b7bc0)); // 4.7323e-37f
, 6.14991e+25f | 7313 path.moveTo(SkBits2Float(0x0321081f), SkBits2Float(0x6a4b7bc0)); // 4.7323e-37f
, 6.14991e+25f |
7314 path.conicTo(SkBits2Float(0x212a8ced), SkBits2Float(0x0321081f), SkBits2Float(0x
6a3a7bc0), SkBits2Float(0x2147ed7a), SkBits2Float(0x28282a3a)); // 5.77848e-19f
, 4.7323e-37f, 5.63611e+25f, 6.77381e-19f, 9.33503e-15f | 7314 path.conicTo(SkBits2Float(0x212a8ced), SkBits2Float(0x0321081f), SkBits2Float(0x
6a3a7bc0), SkBits2Float(0x2147ed7a), SkBits2Float(0x28282a3a)); // 5.77848e-19f
, 4.7323e-37f, 5.63611e+25f, 6.77381e-19f, 9.33503e-15f |
7315 | 7315 |
7316 SkPath path2(path); | 7316 SkPath path2(path); |
7317 testPathOpFailSkipAssert(reporter, path1, path2, (SkPathOp) 0, filename); | 7317 testPathOpSkipAssert(reporter, path1, path2, (SkPathOp) 0, filename); |
7318 } | 7318 } |
7319 | 7319 |
7320 static void fuzz763_27(skiatest::Reporter* reporter, const char* filename) { | 7320 static void fuzz763_27(skiatest::Reporter* reporter, const char* filename) { |
7321 SkPath path; | 7321 SkPath path; |
7322 path.setFillType((SkPath::FillType) 0); | 7322 path.setFillType((SkPath::FillType) 0); |
7323 | 7323 |
7324 SkPath path1(path); | 7324 SkPath path1(path); |
7325 path.reset(); | 7325 path.reset(); |
7326 path.setFillType((SkPath::FillType) 0); | 7326 path.setFillType((SkPath::FillType) 0); |
7327 path.moveTo(SkBits2Float(0x00000000), SkBits2Float(0x00000000)); // 0, 0 | 7327 path.moveTo(SkBits2Float(0x00000000), SkBits2Float(0x00000000)); // 0, 0 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7428 static struct TestDesc repTests[] = { | 7428 static struct TestDesc repTests[] = { |
7429 TEST(loops44i), | 7429 TEST(loops44i), |
7430 TEST(loops45i), | 7430 TEST(loops45i), |
7431 TEST(loops46i), | 7431 TEST(loops46i), |
7432 }; | 7432 }; |
7433 | 7433 |
7434 DEF_TEST(PathOpsRepOp, reporter) { | 7434 DEF_TEST(PathOpsRepOp, reporter) { |
7435 for (int index = 0; index < 2; ++index) | 7435 for (int index = 0; index < 2; ++index) |
7436 RunTestSet(reporter, repTests, SK_ARRAY_COUNT(repTests), nullptr, nullptr, n
ullptr, false); | 7436 RunTestSet(reporter, repTests, SK_ARRAY_COUNT(repTests), nullptr, nullptr, n
ullptr, false); |
7437 } | 7437 } |
OLD | NEW |