| OLD | NEW |
| 1 #include "SkOpContour.h" | 1 #include "SkOpContour.h" |
| 2 #include "SkIntersectionHelper.h" | 2 #include "SkIntersectionHelper.h" |
| 3 #include "SkOpSegment.h" | 3 #include "SkOpSegment.h" |
| 4 | 4 |
| 5 inline void DebugDumpDouble(double x) { | 5 inline void DebugDumpDouble(double x) { |
| 6 if (x == floor(x)) { | 6 if (x == floor(x)) { |
| 7 SkDebugf("%.0f", x); | 7 SkDebugf("%.0f", x); |
| 8 } else { | 8 } else { |
| 9 SkDebugf("%1.19g", x); | 9 SkDebugf("%1.19g", x); |
| 10 } | 10 } |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 SkDebugf("\n"); | 103 SkDebugf("\n"); |
| 104 indent = " "; | 104 indent = " "; |
| 105 next = next->fNext; | 105 next = next->fNext; |
| 106 } while (next && next != first); | 106 } while (next && next != first); |
| 107 } | 107 } |
| 108 | 108 |
| 109 void SkOpAngle::dumpLoop() const { | 109 void SkOpAngle::dumpLoop() const { |
| 110 const SkOpAngle* first = this; | 110 const SkOpAngle* first = this; |
| 111 const SkOpAngle* next = this; | 111 const SkOpAngle* next = this; |
| 112 do { | 112 do { |
| 113 next->dump(); | 113 next->dumpOne(false); |
| 114 SkDebugf("\n"); |
| 114 next = next->fNext; | 115 next = next->fNext; |
| 115 } while (next && next != first); | 116 } while (next && next != first); |
| 116 } | 117 } |
| 117 | 118 |
| 118 void SkOpAngle::dumpPartials() const { | 119 void SkOpAngle::dumpPartials() const { |
| 119 const SkOpAngle* first = this; | 120 const SkOpAngle* first = this; |
| 120 const SkOpAngle* next = this; | 121 const SkOpAngle* next = this; |
| 121 do { | 122 do { |
| 122 next->fCurvePart.dumpNumber(); | 123 next->fCurvePart.dumpNumber(); |
| 123 next = next->fNext; | 124 next = next->fNext; |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 dumpTestCase(quad1, quad2, testNo); | 734 dumpTestCase(quad1, quad2, testNo); |
| 734 dumpTestTrailer(); | 735 dumpTestTrailer(); |
| 735 dumpTestList(testNo, 0); | 736 dumpTestList(testNo, 0); |
| 736 SkDebugf("\n"); | 737 SkDebugf("\n"); |
| 737 } | 738 } |
| 738 | 739 |
| 739 void DumpT(const SkDQuad& quad, double t) { | 740 void DumpT(const SkDQuad& quad, double t) { |
| 740 SkDLine line = {{quad.ptAtT(t), quad[0]}}; | 741 SkDLine line = {{quad.ptAtT(t), quad[0]}}; |
| 741 line.dump(); | 742 line.dump(); |
| 742 } | 743 } |
| OLD | NEW |