Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: tests/PathOpsDebug.cpp

Issue 340103002: fix last skp bug (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/PathOpsCubicQuadIntersectionTest.cpp ('k') | tests/PathOpsOpTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « tests/PathOpsCubicQuadIntersectionTest.cpp ('k') | tests/PathOpsOpTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698