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 4813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4824 path.cubicTo(SkBits2Float(0xc2873b19), SkBits2Float(0x426b7658), SkBits2Float(0x
c2ab209f), SkBits2Float(0x41d60b1d), SkBits2Float(0xc2a5685b), SkBits2Float(0xc0
e02f3c)); | 4824 path.cubicTo(SkBits2Float(0xc2873b19), SkBits2Float(0x426b7658), SkBits2Float(0x
c2ab209f), SkBits2Float(0x41d60b1d), SkBits2Float(0xc2a5685b), SkBits2Float(0xc0
e02f3c)); |
4825 path.cubicTo(SkBits2Float(0xc29fb018), SkBits2Float(0xc223115c), SkBits2Float(0x
c263001e), SkBits2Float(0xc28acd07), SkBits2Float(0xc1c2e1a0), SkBits2Float(0xc2
9eb07c)); | 4825 path.cubicTo(SkBits2Float(0xc29fb018), SkBits2Float(0xc223115c), SkBits2Float(0x
c263001e), SkBits2Float(0xc28acd07), SkBits2Float(0xc1c2e1a0), SkBits2Float(0xc2
9eb07c)); |
4826 path.lineTo(SkBits2Float(0xc18ce0d1), SkBits2Float(0xc2656e32)); | 4826 path.lineTo(SkBits2Float(0xc18ce0d1), SkBits2Float(0xc2656e32)); |
4827 path.cubicTo(SkBits2Float(0xc22418c2), SkBits2Float(0xc248ad0a), SkBits2Float(0x
c266dfbc), SkBits2Float(0xc1ebc2b6), SkBits2Float(0xc26f24bb), SkBits2Float(0xc0
a20f94)); | 4827 path.cubicTo(SkBits2Float(0xc22418c2), SkBits2Float(0xc248ad0a), SkBits2Float(0x
c266dfbc), SkBits2Float(0xc1ebc2b6), SkBits2Float(0xc26f24bb), SkBits2Float(0xc0
a20f94)); |
4828 path.cubicTo(SkBits2Float(0xc27769ba), SkBits2Float(0x419abaee), SkBits2Float(0x
c24383ac), SkBits2Float(0x422a36b0), SkBits2Float(0xc1d80e5c), SkBits2Float(0x42
56500a)); | 4828 path.cubicTo(SkBits2Float(0xc27769ba), SkBits2Float(0x419abaee), SkBits2Float(0x
c24383ac), SkBits2Float(0x422a36b0), SkBits2Float(0xc1d80e5c), SkBits2Float(0x42
56500a)); |
4829 path.cubicTo(SkBits2Float(0xc0a45587), SkBits2Float(0x428134b2), SkBits2Float(0x
41a9eeb8), SkBits2Float(0x4274e820), SkBits2Float(0x421e8655), SkBits2Float(0x42
3431b1)); | 4829 path.cubicTo(SkBits2Float(0xc0a45587), SkBits2Float(0x428134b2), SkBits2Float(0x
41a9eeb8), SkBits2Float(0x4274e820), SkBits2Float(0x421e8655), SkBits2Float(0x42
3431b1)); |
4830 path.lineTo(SkBits2Float(0x425b4ae0), SkBits2Float(0x427944c0)); | 4830 path.lineTo(SkBits2Float(0x425b4ae0), SkBits2Float(0x427944c0)); |
4831 path.close(); | 4831 path.close(); |
4832 | 4832 |
4833 SkPath path2(path); | 4833 SkPath path2(path); |
4834 testPathOpCheck(reporter, path1, path2, (SkPathOp) 2, filename, FLAGS_runFai
l); | 4834 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); |
4835 } | 4835 } |
4836 // op end success 1 | 4836 // op end success 1 |
4837 | 4837 |
4838 static void battleOp178(skiatest::Reporter* reporter, const char* filename) { | 4838 static void battleOp178(skiatest::Reporter* reporter, const char* filename) { |
4839 SkPath path; | 4839 SkPath path; |
4840 path.setFillType((SkPath::FillType) 0); | 4840 path.setFillType((SkPath::FillType) 0); |
4841 path.moveTo(SkBits2Float(0x27b71bcd), SkBits2Float(0xc2a60000)); | 4841 path.moveTo(SkBits2Float(0x27b71bcd), SkBits2Float(0xc2a60000)); |
4842 path.cubicTo(SkBits2Float(0x41fc5f30), SkBits2Float(0xc2a5fffe), SkBits2Float(0x
427176a0), SkBits2Float(0xc2823b95), SkBits2Float(0x4294be35), SkBits2Float(0xc2
1365c9)); | 4842 path.cubicTo(SkBits2Float(0x41fc5f30), SkBits2Float(0xc2a5fffe), SkBits2Float(0x
427176a0), SkBits2Float(0xc2823b95), SkBits2Float(0x4294be35), SkBits2Float(0xc2
1365c9)); |
4843 path.cubicTo(SkBits2Float(0x42b0c118), SkBits2Float(0xc1095198), SkBits2Float(0x
42aa4b8f), SkBits2Float(0x41c9721a), SkBits2Float(0x42841312), SkBits2Float(0x42
491ec0)); | 4843 path.cubicTo(SkBits2Float(0x42b0c118), SkBits2Float(0xc1095198), SkBits2Float(0x
42aa4b8f), SkBits2Float(0x41c9721a), SkBits2Float(0x42841312), SkBits2Float(0x42
491ec0)); |
4844 path.lineTo(SkBits2Float(0x423ef37b), SkBits2Float(0x42116356)); | 4844 path.lineTo(SkBits2Float(0x423ef37b), SkBits2Float(0x42116356)); |
(...skipping 5829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10674 path.cubicTo(SkBits2Float(0x3dbed1a5), SkBits2Float(0xc2a5fffa), SkBits2Float(0x
3dfda9cc), SkBits2Float(0xc2a5fff4), SkBits2Float(0x3e1e40f8), SkBits2Float(0xc2
a5ffed)); | 10674 path.cubicTo(SkBits2Float(0x3dbed1a5), SkBits2Float(0xc2a5fffa), SkBits2Float(0x
3dfda9cc), SkBits2Float(0xc2a5fff4), SkBits2Float(0x3e1e40f8), SkBits2Float(0xc2
a5ffed)); |
10675 path.lineTo(SkBits2Float(0x3de4ce81), SkBits2Float(0xc26fffe5)); | 10675 path.lineTo(SkBits2Float(0x3de4ce81), SkBits2Float(0xc26fffe5)); |
10676 path.cubicTo(SkBits2Float(0x3db75eff), SkBits2Float(0xc26ffff0), SkBits2Float(0x
3d89f101), SkBits2Float(0xc26ffff8), SkBits2Float(0x3d390604), SkBits2Float(0xc2
6ffffc)); | 10676 path.cubicTo(SkBits2Float(0x3db75eff), SkBits2Float(0xc26ffff0), SkBits2Float(0x
3d89f101), SkBits2Float(0xc26ffff8), SkBits2Float(0x3d390604), SkBits2Float(0xc2
6ffffc)); |
10677 path.lineTo(SkBits2Float(0x3d7ff566), SkBits2Float(0xc2a5fffd)); | 10677 path.lineTo(SkBits2Float(0x3d7ff566), SkBits2Float(0xc2a5fffd)); |
10678 path.close(); | 10678 path.close(); |
10679 | 10679 |
10680 SkPath path2(path); | 10680 SkPath path2(path); |
10681 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); | 10681 testPathOp(reporter, path1, path2, (SkPathOp) 2, filename); |
10682 } | 10682 } |
10683 | 10683 |
10684 static void (*firstTest)(skiatest::Reporter* , const char* filename) = battleOp1
394; | 10684 static void (*firstTest)(skiatest::Reporter* , const char* filename) = battleOp1
21; |
10685 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; | 10685 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; |
10686 | 10686 |
10687 static struct TestDesc tests[] = { | 10687 static struct TestDesc tests[] = { |
10688 TEST(battleOp1), | 10688 TEST(battleOp1), |
10689 TEST(battleOp2), | 10689 TEST(battleOp2), |
10690 TEST(battleOp3), | 10690 TEST(battleOp3), |
10691 TEST(battleOp4), | 10691 TEST(battleOp4), |
10692 TEST(battleOp5), | 10692 TEST(battleOp5), |
10693 TEST(battleOp6), | 10693 TEST(battleOp6), |
10694 TEST(battleOp7), | 10694 TEST(battleOp7), |
(...skipping 423 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 |