diff options
Diffstat (limited to 'src/pathops/SkPathOpsDebug.cpp')
-rw-r--r-- | src/pathops/SkPathOpsDebug.cpp | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/pathops/SkPathOpsDebug.cpp b/src/pathops/SkPathOpsDebug.cpp index e744c75658..a0fcff58e0 100644 --- a/src/pathops/SkPathOpsDebug.cpp +++ b/src/pathops/SkPathOpsDebug.cpp @@ -277,7 +277,7 @@ static void move_nearby(SkPathOpsDebug::GlitchLog* glitches, const SkOpContourHe void SkOpGlobalState::debugAddToCoinChangedDict() { #if DEBUG_COINCIDENCE - CheckHealth(contourList); + SkPathOpsDebug::CheckHealth(fContourHead); #endif // see if next coincident operation makes a change; if so, record it SkPathOpsDebug::GlitchLog glitches; @@ -477,14 +477,6 @@ void SkPathOpsDebug::MathematicaIze(char* str, size_t bufferLen) { } } -#if DEBUG_VALIDATE -void SkPathOpsDebug::SetPhase(SkOpContourHead* contourList, CoinID next, - int lineNumber, SkOpPhase phase) { - AddedCoin(contourList, next, 0, lineNumber); - contourList->globalState()->setPhase(phase); -} -#endif - bool SkPathOpsDebug::ValidWind(int wind) { return wind > SK_MinS32 + 0xFFFF && wind < SK_MaxS32 - 0xFFFF; } @@ -1688,21 +1680,6 @@ void SkOpCoincidence::debugAddExpanded(SkPathOpsDebug::GlitchLog* log) const { return; } -/* Commented-out lines keep this in sync with addIfMissing() */ -void SkOpCoincidence::debugAddIfMissing(SkPathOpsDebug::GlitchLog* log, const SkCoincidentSpans* outer, const SkOpPtT* over1s, - const SkOpPtT* over1e) const { -// SkASSERT(fTop); - if (fTop && alreadyAdded(fTop, outer, over1s, over1e)) { // in debug, fTop may be null - return; - } - if (fHead && alreadyAdded(fHead, outer, over1s, over1e)) { - return; - } - log->record(SkPathOpsDebug::kAddIfMissingCoin_Glitch, outer->coinPtTStart(), outer->coinPtTEnd(), over1s, over1e); - this->debugValidate(); - return; -} - /* Commented-out lines keep this in sync addIfMissing() */ // note that over1s, over1e, over2s, over2e are ordered void SkOpCoincidence::debugAddIfMissing(SkPathOpsDebug::GlitchLog* log, const SkOpPtT* over1s, const SkOpPtT* over2s, |