Index: src/pathops/SkOpSegment.h |
diff --git a/src/pathops/SkOpSegment.h b/src/pathops/SkOpSegment.h |
index 6a8ab851acfc396bd98c4944edddf61c478a8d56..98e140cba3e2e592ce29410283fa014471da48ac 100644 |
--- a/src/pathops/SkOpSegment.h |
+++ b/src/pathops/SkOpSegment.h |
@@ -115,8 +115,6 @@ public: |
} |
void calcAngles(SkChunkAlloc*); |
- void checkAngleCoin(SkOpCoincidence* coincidences, SkChunkAlloc* allocator); |
- void checkNearCoincidence(SkOpAngle* ); |
bool collapsed() const; |
static void ComputeOneSum(const SkOpAngle* baseAngle, SkOpAngle* nextAngle, |
SkOpAngle::IncludeType ); |
@@ -133,14 +131,35 @@ public: |
} |
void debugAddAngle(double startT, double endT, SkChunkAlloc*); |
+ void debugAddAlignIntersection(const char* id, SkPathOpsDebug::GlitchLog* glitches, |
+ const SkOpPtT& endPtT, const SkPoint& oldPt, |
+ const SkOpContourHead* ) const; |
+ |
+ void debugAddAlignIntersections(const char* id, SkPathOpsDebug::GlitchLog* glitches, |
+ SkOpContourHead* contourList) const { |
+ this->debugAddAlignIntersection(id, glitches, *fHead.ptT(), fOriginal[0], contourList); |
+ this->debugAddAlignIntersection(id, glitches, *fTail.ptT(), fOriginal[1], contourList); |
+ } |
+ |
+ bool debugAddMissing(double t, const SkOpSegment* opp) const; |
+ void debugAlign(const char* id, SkPathOpsDebug::GlitchLog* glitches) const; |
const SkOpAngle* debugAngle(int id) const; |
+#if DEBUG_ANGLE |
+ void debugCheckAngleCoin() const; |
+#endif |
+ void debugCheckHealth(const char* id, SkPathOpsDebug::GlitchLog* ) const; |
SkOpContour* debugContour(int id); |
+ void debugFindCollapsed(const char* id, SkPathOpsDebug::GlitchLog* glitches) const; |
int debugID() const { |
return SkDEBUGRELEASE(fID, -1); |
} |
SkOpAngle* debugLastAngle(); |
+ void debugMissingCoincidence(const char* id, SkPathOpsDebug::GlitchLog* glitches, |
+ const SkOpCoincidence* coincidences) const; |
+ void debugMoveMultiples(const char* id, SkPathOpsDebug::GlitchLog* glitches) const; |
+ void debugMoveNearby(const char* id, SkPathOpsDebug::GlitchLog* glitches) const; |
const SkOpPtT* debugPtT(int id) const; |
void debugReset(); |
const SkOpSegment* debugSegment(int id) const; |
@@ -156,7 +175,7 @@ public: |
const SkOpSpanBase* debugSpan(int id) const; |
void debugValidate() const; |
void detach(const SkOpSpan* ); |
- double distSq(double t, SkOpAngle* opp); |
+ double distSq(double t, const SkOpAngle* opp) const; |
bool done() const { |
SkASSERT(fDoneCount <= fCount); |
@@ -179,8 +198,8 @@ public: |
void dumpAll() const; |
void dumpAngles() const; |
void dumpCoin() const; |
- void dumpPts() const; |
- void dumpPtsInner() const; |
+ void dumpPts(const char* prefix = "seg") const; |
+ void dumpPtsInner(const char* prefix = "seg") const; |
void findCollapsed(); |
SkOpSegment* findNextOp(SkTDArray<SkOpSpanBase*>* chase, SkOpSpanBase** nextStart, |