| 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 10663 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
21; | 10684 static void (*firstTest)(skiatest::Reporter* , const char* filename) = battleOp1
83; |
| 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 |