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 #define TEST(name) { name, #name } | 10 #define TEST(name) { name, #name } |
(...skipping 4993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5004 path.cubicTo(SkBits2Float(0xc2931dbe), SkBits2Float(0x424f7409), SkBits2Float(0x
c2b0c9d8), SkBits2Float(0x41878abe), SkBits2Float(0xc2a26e7f), SkBits2Float(0xc1
88ef9a)); | 5004 path.cubicTo(SkBits2Float(0xc2931dbe), SkBits2Float(0x424f7409), SkBits2Float(0x
c2b0c9d8), SkBits2Float(0x41878abe), SkBits2Float(0xc2a26e7f), SkBits2Float(0xc1
88ef9a)); |
5005 path.cubicTo(SkBits2Float(0xc2941327), SkBits2Float(0xc24cb4f5), SkBits2Float(0x
c2397a7c), SkBits2Float(0xc29a4742), SkBits2Float(0xc13ec328), SkBits2Float(0xc2
a44746)); | 5005 path.cubicTo(SkBits2Float(0xc2941327), SkBits2Float(0xc24cb4f5), SkBits2Float(0x
c2397a7c), SkBits2Float(0xc29a4742), SkBits2Float(0xc13ec328), SkBits2Float(0xc2
a44746)); |
5006 path.lineTo(SkBits2Float(0xc109e67a), SkBits2Float(0xc26d82d0)); | 5006 path.lineTo(SkBits2Float(0xc109e67a), SkBits2Float(0xc26d82d0)); |
5007 path.cubicTo(SkBits2Float(0xc20614b0), SkBits2Float(0xc25f0d94), SkBits2Float(0x
c2561585), SkBits2Float(0xc213fb18), SkBits2Float(0xc26ad744), SkBits2Float(0xc1
45fabb)); | 5007 path.cubicTo(SkBits2Float(0xc20614b0), SkBits2Float(0xc25f0d94), SkBits2Float(0x
c2561585), SkBits2Float(0xc213fb18), SkBits2Float(0xc26ad744), SkBits2Float(0xc1
45fabb)); |
5008 path.cubicTo(SkBits2Float(0xc27f9901), SkBits2Float(0x4143f6e8), SkBits2Float(0x
c254b2af), SkBits2Float(0x4215f75b), SkBits2Float(0xc1feccbb), SkBits2Float(0x42
4b64f3)); | 5008 path.cubicTo(SkBits2Float(0xc27f9901), SkBits2Float(0x4143f6e8), SkBits2Float(0x
c254b2af), SkBits2Float(0x4215f75b), SkBits2Float(0xc1feccbb), SkBits2Float(0x42
4b64f3)); |
5009 path.cubicTo(SkBits2Float(0xc128682f), SkBits2Float(0x42806945), SkBits2Float(0x
4186f1ba), SkBits2Float(0x427b5a1e), SkBits2Float(0x4213064f), SkBits2Float(0x42
3db1a2)); | 5009 path.cubicTo(SkBits2Float(0xc128682f), SkBits2Float(0x42806945), SkBits2Float(0x
4186f1ba), SkBits2Float(0x427b5a1e), SkBits2Float(0x4213064f), SkBits2Float(0x42
3db1a2)); |
5010 path.lineTo(SkBits2Float(0x424b624a), SkBits2Float(0x42833479)); | 5010 path.lineTo(SkBits2Float(0x424b624a), SkBits2Float(0x42833479)); |
5011 path.close(); | 5011 path.close(); |
5012 | 5012 |
5013 SkPath path2(path); | 5013 SkPath path2(path); |
5014 testPathOpCheck(reporter, path1, path2, (SkPathOp) 2, filename, FLAGS_runFai
l); | 5014 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); |
5015 } | 5015 } |
5016 // op end success 1 | 5016 // op end success 1 |
5017 | 5017 |
5018 static void battleOp184(skiatest::Reporter* reporter, const char* filename) { | 5018 static void battleOp184(skiatest::Reporter* reporter, const char* filename) { |
5019 SkPath path; | 5019 SkPath path; |
5020 path.setFillType((SkPath::FillType) 0); | 5020 path.setFillType((SkPath::FillType) 0); |
5021 path.moveTo(SkBits2Float(0x27b71bcd), SkBits2Float(0xc2a60000)); | 5021 path.moveTo(SkBits2Float(0x27b71bcd), SkBits2Float(0xc2a60000)); |
5022 path.cubicTo(SkBits2Float(0x42011b87), SkBits2Float(0xc2a5fffe), SkBits2Float(0x
427681ab), SkBits2Float(0xc280937a), SkBits2Float(0x42967eb3), SkBits2Float(0xc2
0c1a94)); | 5022 path.cubicTo(SkBits2Float(0x42011b87), SkBits2Float(0xc2a5fffe), SkBits2Float(0x
427681ab), SkBits2Float(0xc280937a), SkBits2Float(0x42967eb3), SkBits2Float(0xc2
0c1a94)); |
5023 path.cubicTo(SkBits2Float(0x42b1bc91), SkBits2Float(0xc0b87191), SkBits2Float(0x
42a89454), SkBits2Float(0x41e5ed6f), SkBits2Float(0x427e0902), SkBits2Float(0x42
55c0a2)); | 5023 path.cubicTo(SkBits2Float(0x42b1bc91), SkBits2Float(0xc0b87191), SkBits2Float(0x
42a89454), SkBits2Float(0x41e5ed6f), SkBits2Float(0x427e0902), SkBits2Float(0x42
55c0a2)); |
5024 path.lineTo(SkBits2Float(0x4237a3d0), SkBits2Float(0x421a8517)); | 5024 path.lineTo(SkBits2Float(0x4237a3d0), SkBits2Float(0x421a8517)); |
(...skipping 6093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11118 static const size_t testCount = SK_ARRAY_COUNT(tests); | 11118 static const size_t testCount = SK_ARRAY_COUNT(tests); |
11119 | 11119 |
11120 static bool runReverse = false; | 11120 static bool runReverse = false; |
11121 | 11121 |
11122 DEF_TEST(PathOpsBattle, reporter) { | 11122 DEF_TEST(PathOpsBattle, reporter) { |
11123 #if DEBUG_SHOW_TEST_NAME | 11123 #if DEBUG_SHOW_TEST_NAME |
11124 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH); | 11124 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH); |
11125 #endif | 11125 #endif |
11126 RunTestSet(reporter, tests, testCount, firstTest, NULL, stopTest, runReverse
); | 11126 RunTestSet(reporter, tests, testCount, firstTest, NULL, stopTest, runReverse
); |
11127 } | 11127 } |
OLD | NEW |