| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright 2013 Google Inc. | 2  * Copyright 2013 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 "PathOpsTestCommon.h" | 7 #include "PathOpsTestCommon.h" | 
| 8 #include "SkIntersections.h" | 8 #include "SkIntersections.h" | 
| 9 #include "SkPathOpsCubic.h" | 9 #include "SkPathOpsCubic.h" | 
| 10 #include "SkPathOpsQuad.h" | 10 #include "SkPathOpsQuad.h" | 
| 11 #include "SkReduceOrder.h" | 11 #include "SkReduceOrder.h" | 
| 12 #include "Test.h" | 12 #include "Test.h" | 
| 13 #include "TestClassDef.h" |  | 
| 14 | 13 | 
| 15 static struct lineCubic { | 14 static struct lineCubic { | 
| 16     SkDCubic cubic; | 15     SkDCubic cubic; | 
| 17     SkDQuad quad; | 16     SkDQuad quad; | 
| 18     int answerCount; | 17     int answerCount; | 
| 19     SkDPoint answers[2]; | 18     SkDPoint answers[2]; | 
| 20 } quadCubicTests[] = { | 19 } quadCubicTests[] = { | 
| 21     {{{{778, 14089}, {778, 14091.208984375}, {776.20916748046875, 14093}, {774, 
    14093}}}, | 20     {{{{778, 14089}, {778, 14091.208984375}, {776.20916748046875, 14093}, {774, 
    14093}}}, | 
| 22      {{{778, 14089}, {777.99957275390625, 14090.65625}, {776.82843017578125, 140
    91.828125}}}, 2, | 21      {{{778, 14089}, {777.99957275390625, 14090.65625}, {776.82843017578125, 140
    91.828125}}}, 2, | 
| 23      {{778, 14089}, {776.82855609581270,14091.828250841330}}}, | 22      {{778, 14089}, {776.82855609581270,14091.828250841330}}}, | 
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 89             } | 88             } | 
| 90             if (!found) { | 89             if (!found) { | 
| 91                 SkDebugf("%s [%d,%d] xy1=(%g,%g) != \n", | 90                 SkDebugf("%s [%d,%d] xy1=(%g,%g) != \n", | 
| 92                     __FUNCTION__, iIndex, pt, xy1.fX, xy1.fY); | 91                     __FUNCTION__, iIndex, pt, xy1.fX, xy1.fY); | 
| 93             } | 92             } | 
| 94             REPORTER_ASSERT(reporter, found); | 93             REPORTER_ASSERT(reporter, found); | 
| 95         } | 94         } | 
| 96         reporter->bumpTestCount(); | 95         reporter->bumpTestCount(); | 
| 97     } | 96     } | 
| 98 } | 97 } | 
| OLD | NEW | 
|---|