OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 #define TEST(name) { name, #name } | 10 #define TEST(name) { name, #name } |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 path.quadTo(SkBits2Float(0xc24fca68), SkBits2Float(0x418ad2e8), SkBits2Float(0xc
25338d1), SkBits2Float(0x41626f8c)); | 203 path.quadTo(SkBits2Float(0xc24fca68), SkBits2Float(0x418ad2e8), SkBits2Float(0xc
25338d1), SkBits2Float(0x41626f8c)); |
204 path.quadTo(SkBits2Float(0xc256a73a), SkBits2Float(0x412f3944), SkBits2Float(0xc
25006c4), SkBits2Float(0x41014e62)); | 204 path.quadTo(SkBits2Float(0xc256a73a), SkBits2Float(0x412f3944), SkBits2Float(0xc
25006c4), SkBits2Float(0x41014e62)); |
205 path.quadTo(SkBits2Float(0xc249664e), SkBits2Float(0x40a6c6fc), SkBits2Float(0xc
23c98bd), SkBits2Float(0x408b53b8)); | 205 path.quadTo(SkBits2Float(0xc249664e), SkBits2Float(0x40a6c6fc), SkBits2Float(0xc
23c98bd), SkBits2Float(0x408b53b8)); |
206 path.quadTo(SkBits2Float(0xc22fcb2b), SkBits2Float(0x405fc0d8), SkBits2Float(0xc
2245073), SkBits2Float(0x40a4e41c)); | 206 path.quadTo(SkBits2Float(0xc22fcb2b), SkBits2Float(0x405fc0d8), SkBits2Float(0xc
2245073), SkBits2Float(0x40a4e41c)); |
207 path.quadTo(SkBits2Float(0xc218d5ba), SkBits2Float(0x40d9e7cc), SkBits2Float(0xc
2156751), SkBits2Float(0x41202a2d)); | 207 path.quadTo(SkBits2Float(0xc218d5ba), SkBits2Float(0x40d9e7cc), SkBits2Float(0xc
2156751), SkBits2Float(0x41202a2d)); |
208 path.quadTo(SkBits2Float(0xc211f8e8), SkBits2Float(0x41536071), SkBits2Float(0xc
218995e), SkBits2Float(0x4180a5aa)); | 208 path.quadTo(SkBits2Float(0xc211f8e8), SkBits2Float(0x41536071), SkBits2Float(0xc
218995e), SkBits2Float(0x4180a5aa)); |
209 path.quadTo(SkBits2Float(0xc21f39d4), SkBits2Float(0x41979b1c), SkBits2Float(0xc
22c0765), SkBits2Float(0x419e77ee)); | 209 path.quadTo(SkBits2Float(0xc21f39d4), SkBits2Float(0x41979b1c), SkBits2Float(0xc
22c0765), SkBits2Float(0x419e77ee)); |
210 path.quadTo(SkBits2Float(0xc238d4f6), SkBits2Float(0x41a554c0), SkBits2Float(0xc
2444fb0), SkBits2Float(0x419813d4)); | 210 path.quadTo(SkBits2Float(0xc238d4f6), SkBits2Float(0x41a554c0), SkBits2Float(0xc
2444fb0), SkBits2Float(0x419813d4)); |
211 path.close(); | 211 path.close(); |
212 SkPath path2(path); | 212 SkPath path2(path); |
213 testPathOpCheck(reporter, path1, path2, (SkPathOp) 2, filename, FLAGS_runFai
l); | 213 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); |
214 } | 214 } |
215 | 215 |
216 static void fuzz763_378b(skiatest::Reporter* reporter, const char* filename) { | 216 static void fuzz763_378b(skiatest::Reporter* reporter, const char* filename) { |
217 SkPath path; | 217 SkPath path; |
218 path.setFillType((SkPath::FillType) 1); | 218 path.setFillType((SkPath::FillType) 1); |
219 path.moveTo(-47.1494f, 4.35143f); | 219 path.moveTo(-47.1494f, 4.35143f); |
220 path.quadTo(-39.8075f, 18.9486f, -43.0083f, 19.8062f); | 220 path.quadTo(-39.8075f, 18.9486f, -43.0083f, 19.8062f); |
221 path.quadTo(-50.35f, 5.21042f, -52.0068f, 8.08022f); | 221 path.quadTo(-50.35f, 5.21042f, -52.0068f, 8.08022f); |
222 path.quadTo(-53.6632f, 10.9494f, -52.8062f, 14.1494f); | 222 path.quadTo(-53.6632f, 10.9494f, -52.8062f, 14.1494f); |
223 path.quadTo(-53.6639f, 10.9486f, -52.007f, 8.07884f); | 223 path.quadTo(-53.6639f, 10.9486f, -52.007f, 8.07884f); |
(...skipping 2160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2384 path.quadTo(SkBits2Float(0x4211413d), SkBits2Float(0x42240000), SkBits2Float(0x4
2040000), SkBits2Float(0x42240000)); // 36.3137f, 41, 33, 41 | 2384 path.quadTo(SkBits2Float(0x4211413d), SkBits2Float(0x42240000), SkBits2Float(0x4
2040000), SkBits2Float(0x42240000)); // 36.3137f, 41, 33, 41 |
2385 path.quadTo(SkBits2Float(0x41ed7d86), SkBits2Float(0x42240000), SkBits2Float(0x4
1dabec3), SkBits2Float(0x421aa09e)); // 29.6863f, 41, 27.3431f, 38.6569f | 2385 path.quadTo(SkBits2Float(0x41ed7d86), SkBits2Float(0x42240000), SkBits2Float(0x4
1dabec3), SkBits2Float(0x421aa09e)); // 29.6863f, 41, 27.3431f, 38.6569f |
2386 path.quadTo(SkBits2Float(0x41c80000), SkBits2Float(0x4211413d), SkBits2Float(0x4
1c80000), SkBits2Float(0x42040000)); // 25, 36.3137f, 25, 33 | 2386 path.quadTo(SkBits2Float(0x41c80000), SkBits2Float(0x4211413d), SkBits2Float(0x4
1c80000), SkBits2Float(0x42040000)); // 25, 36.3137f, 25, 33 |
2387 path.quadTo(SkBits2Float(0x41c80000), SkBits2Float(0x41ed7d86), SkBits2Float(0x4
1dabec3), SkBits2Float(0x41dabec3)); // 25, 29.6863f, 27.3431f, 27.3431f | 2387 path.quadTo(SkBits2Float(0x41c80000), SkBits2Float(0x41ed7d86), SkBits2Float(0x4
1dabec3), SkBits2Float(0x41dabec3)); // 25, 29.6863f, 27.3431f, 27.3431f |
2388 path.quadTo(SkBits2Float(0x41ed7d86), SkBits2Float(0x41c80000), SkBits2Float(0x4
2040000), SkBits2Float(0x41c80000)); // 29.6863f, 25, 33, 25 | 2388 path.quadTo(SkBits2Float(0x41ed7d86), SkBits2Float(0x41c80000), SkBits2Float(0x4
2040000), SkBits2Float(0x41c80000)); // 29.6863f, 25, 33, 25 |
2389 path.quadTo(SkBits2Float(0x4211413d), SkBits2Float(0x41c80000), SkBits2Float(0x4
21aa09e), SkBits2Float(0x41dabec3)); // 36.3137f, 25, 38.6569f, 27.3431f | 2389 path.quadTo(SkBits2Float(0x4211413d), SkBits2Float(0x41c80000), SkBits2Float(0x4
21aa09e), SkBits2Float(0x41dabec3)); // 36.3137f, 25, 38.6569f, 27.3431f |
2390 path.quadTo(SkBits2Float(0x42240000), SkBits2Float(0x41ed7d86), SkBits2Float(0x4
2240000), SkBits2Float(0x42040000)); // 41, 29.6863f, 41, 33 | 2390 path.quadTo(SkBits2Float(0x42240000), SkBits2Float(0x41ed7d86), SkBits2Float(0x4
2240000), SkBits2Float(0x42040000)); // 41, 29.6863f, 41, 33 |
2391 path.close(); | 2391 path.close(); |
2392 | 2392 |
2393 SkPath path2(path); | 2393 SkPath path2(path); |
2394 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); | 2394 testPathOpCheck(reporter, path1, path2, (SkPathOp) 2, filename, FLAGS_runFai
l); |
2395 } | 2395 } |
2396 | 2396 |
2397 static void (*skipTest)(skiatest::Reporter* , const char* filename) = 0; | 2397 static void (*skipTest)(skiatest::Reporter* , const char* filename) = 0; |
2398 static void (*firstTest)(skiatest::Reporter* , const char* filename) = fuzz763_2
674194; | 2398 static void (*firstTest)(skiatest::Reporter* , const char* filename) = fuzz763_2
674194; |
2399 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; | 2399 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; |
2400 | 2400 |
2401 static struct TestDesc tests[] = { | 2401 static struct TestDesc tests[] = { |
2402 TEST(fuzz763_10022998), | 2402 TEST(fuzz763_10022998), |
2403 TEST(fuzz763_2674194), | 2403 TEST(fuzz763_2674194), |
2404 TEST(fuzz763_5485218), | 2404 TEST(fuzz763_5485218), |
(...skipping 29 matching lines...) Expand all Loading... |
2434 static const size_t testCount = SK_ARRAY_COUNT(tests); | 2434 static const size_t testCount = SK_ARRAY_COUNT(tests); |
2435 | 2435 |
2436 static bool runReverse = false; | 2436 static bool runReverse = false; |
2437 | 2437 |
2438 DEF_TEST(PathOpsFuzz763, reporter) { | 2438 DEF_TEST(PathOpsFuzz763, reporter) { |
2439 #if DEBUG_SHOW_TEST_NAME | 2439 #if DEBUG_SHOW_TEST_NAME |
2440 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH); | 2440 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH); |
2441 #endif | 2441 #endif |
2442 RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev
erse); | 2442 RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev
erse); |
2443 } | 2443 } |
OLD | NEW |