| 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  |     8  | 
|     9 #define TEST(name) { name, #name } |     9 #define TEST(name) { name, #name } | 
|    10  |    10  | 
| (...skipping 5524 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  5535     path.quadTo(0, 1, 1, 2); |  5535     path.quadTo(0, 1, 1, 2); | 
|  5536     path.lineTo(0, 3); |  5536     path.lineTo(0, 3); | 
|  5537     path.close(); |  5537     path.close(); | 
|  5538     path.moveTo(0, 0); |  5538     path.moveTo(0, 0); | 
|  5539     path.lineTo(0, 0); |  5539     path.lineTo(0, 0); | 
|  5540     path.quadTo(0, 1, 1, 1); |  5540     path.quadTo(0, 1, 1, 1); | 
|  5541     path.close(); |  5541     path.close(); | 
|  5542     testSimplify(reporter, path, filename); |  5542     testSimplify(reporter, path, filename); | 
|  5543 } |  5543 } | 
|  5544  |  5544  | 
 |  5545 static void bug5169(skiatest::Reporter* reporter, const char* filename) { | 
 |  5546     SkPath path; | 
 |  5547 path.moveTo(SkBits2Float(0x00000000), SkBits2Float(0x4281c71c));  // 0, 64.8889f | 
 |  5548 path.cubicTo(SkBits2Float(0x434e0000), SkBits2Float(0x4281c71c), SkBits2Float(0x
      00000000), SkBits2Float(0xc2a238e4), SkBits2Float(0x00000000), SkBits2Float(0x42
      81c71c));  // 206, 64.8889f, 0, -81.1111f, 0, 64.8889f | 
 |  5549 path.moveTo(SkBits2Float(0x43300000), SkBits2Float(0x41971c72));  // 176, 18.888
      9f | 
 |  5550 path.cubicTo(SkBits2Float(0xc29e0000), SkBits2Float(0xc25c71c7), SkBits2Float(0x
      42b20000), SkBits2Float(0x42fbc71c), SkBits2Float(0x43300000), SkBits2Float(0x41
      971c72));  // -79, -55.1111f, 89, 125.889f, 176, 18.8889f | 
 |  5551     testSimplify(reporter, path, filename); | 
 |  5552 } | 
 |  5553  | 
|  5545 static void (*skipTest)(skiatest::Reporter* , const char* filename) = 0; |  5554 static void (*skipTest)(skiatest::Reporter* , const char* filename) = 0; | 
|  5546 static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0; |  5555 static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0; | 
|  5547 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; |  5556 static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; | 
|  5548  |  5557  | 
|  5549 static TestDesc tests[] = { |  5558 static TestDesc tests[] = { | 
 |  5559     TEST(bug5169), | 
|  5550     TEST(testQuads73), |  5560     TEST(testQuads73), | 
|  5551     TEST(testQuads72), |  5561     TEST(testQuads72), | 
|  5552     TEST(testQuads71), |  5562     TEST(testQuads71), | 
|  5553     TEST(testQuads70), |  5563     TEST(testQuads70), | 
|  5554     TEST(testQuads69), |  5564     TEST(testQuads69), | 
|  5555     TEST(testQuads68), |  5565     TEST(testQuads68), | 
|  5556     TEST(testQuads67), |  5566     TEST(testQuads67), | 
|  5557     TEST(testQuads66), |  5567     TEST(testQuads66), | 
|  5558     TEST(dean4), |  5568     TEST(dean4), | 
|  5559     TEST(fuzz763_4713_b), |  5569     TEST(fuzz763_4713_b), | 
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  6004  |  6014  | 
|  6005 DEF_TEST(PathOpsSimplify, reporter) { |  6015 DEF_TEST(PathOpsSimplify, reporter) { | 
|  6006     if (runSubTests && runSubTestsFirst) { |  6016     if (runSubTests && runSubTestsFirst) { | 
|  6007         RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop
      Test, runReverse); |  6017         RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop
      Test, runReverse); | 
|  6008     } |  6018     } | 
|  6009     RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev
      erse); |  6019     RunTestSet(reporter, tests, testCount, firstTest, skipTest, stopTest, runRev
      erse); | 
|  6010     if (runSubTests && !runSubTestsFirst) { |  6020     if (runSubTests && !runSubTestsFirst) { | 
|  6011         RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop
      Test, runReverse); |  6021         RunTestSet(reporter, subTests, subTestCount, firstSubTest, nullptr, stop
      Test, runReverse); | 
|  6012     } |  6022     } | 
|  6013 } |  6023 } | 
| OLD | NEW |