Lines Matching refs:coin
28 #define FAIL_IF(cond, coin) \ argument
29 do { if (cond) log->record(SkPathOpsDebug::kFail_Glitch, coin); } while (false)
135 void record(GlitchType type, const SkCoincidentSpans* coin, in record()
138 glitch->fCoinSpan = coin->coinPtTStart(); in record()
139 glitch->fEndSpan = coin->coinPtTEnd(); in record()
163 void record(GlitchType type, const SkCoincidentSpans* coin, in record()
166 glitch->fCoinSpan = coin->coinPtTStart(); in record()
167 glitch->fEndSpan = coin->coinPtTEnd(); in record()
173 void record(GlitchType type, const SkCoincidentSpans* coin, in record()
177 glitch->fCoinSpan = coin->coinPtTStart(); in record()
178 glitch->fEndSpan = coin->coinPtTEnd(); in record()
219 void record(GlitchType type, const SkCoincidentSpans* coin, in record()
222 glitch->fCoinSpan = coin->coinPtTStart(); in record()
1613 const SkCoincidentSpans* coin = this->fHead; in debugAddExpanded() local
1614 if (!coin) { in debugAddExpanded()
1618 const SkOpPtT* startPtT = coin->coinPtTStart(); in debugAddExpanded()
1619 const SkOpPtT* oStartPtT = coin->oppPtTStart(); in debugAddExpanded()
1622 FAIL_IF(!startPtT->contains(oStartPtT), coin); in debugAddExpanded()
1623 SkOPASSERT(coin->coinPtTEnd()->contains(coin->oppPtTEnd())); in debugAddExpanded()
1626 const SkOpSpanBase* end = coin->coinPtTEnd()->span(); in debugAddExpanded()
1627 const SkOpSpanBase* oEnd = coin->oppPtTEnd()->span(); in debugAddExpanded()
1628 FAIL_IF(oEnd->deleted(), coin); in debugAddExpanded()
1629 FAIL_IF(!start->upCastable(), coin); in debugAddExpanded()
1631 FAIL_IF(!coin->flipped() && !oStart->upCastable(), coin); in debugAddExpanded()
1632 const SkOpSpanBase* oTest = coin->flipped() ? oStart->prev() : oStart->upCast()->next(); in debugAddExpanded()
1633 FAIL_IF(!oTest, coin); in debugAddExpanded()
1653 FAIL_IF(!walk->upCastable(), coin); in debugAddExpanded()
1656 && walk != coin->coinPtTEnd()->span()); in debugAddExpanded()
1657 FAIL_IF(!walkOpp, coin); in debugAddExpanded()
1663 FAIL_IF(!startRange, coin); in debugAddExpanded()
1666 FAIL_IF(!oStartRange, coin); in debugAddExpanded()
1668 FAIL_IF(startPart == oStartPart, coin); in debugAddExpanded()
1681 end = coin->coinPtTEnd()->span(); in debugAddExpanded()
1682 oEnd = coin->oppPtTEnd()->span(); in debugAddExpanded()
1685 FAIL_IF(!test->upCastable(), coin); in debugAddExpanded()
1691 oTest = coin->flipped() ? oTest->prev() : oTest->upCast()->next(); in debugAddExpanded()
1692 FAIL_IF(!oTest, coin); in debugAddExpanded()
1695 } while ((coin = coin->next())); in debugAddExpanded()
1959 void SkOpCoincidence::debugRelease(SkPathOpsDebug::GlitchLog* log, const SkCoincidentSpans* coin, c… in debugRelease() argument
1960 const SkCoincidentSpans* head = coin; in debugRelease()
1964 next = coin->next(); in debugRelease()
1965 if (coin == remove) { in debugRelease()
1973 log->record(SkPathOpsDebug::kReleasedSpan_Glitch, coin); in debugRelease()
1975 prev = coin; in debugRelease()
1976 } while ((coin = next)); in debugRelease()
1981 const SkCoincidentSpans* coin = fHead; in debugRelease() local
1982 if (!coin) { in debugRelease()
1986 if (coin->coinPtTStart()->segment() == deleted in debugRelease()
1987 || coin->coinPtTEnd()->segment() == deleted in debugRelease()
1988 || coin->oppPtTStart()->segment() == deleted in debugRelease()
1989 || coin->oppPtTEnd()->segment() == deleted) { in debugRelease()
1990 log->record(SkPathOpsDebug::kReleasedSpan_Glitch, coin); in debugRelease()
1992 } while ((coin = coin->next())); in debugRelease()
1998 const SkCoincidentSpans* coin = fHead; in debugExpand() local
1999 if (!coin) { in debugExpand()
2004 if (coin->debugExpand(log)) { in debugExpand()
2008 if (coin == test) { in debugExpand()
2011 if (coin->coinPtTStart() == test->coinPtTStart() in debugExpand()
2012 && coin->oppPtTStart() == test->oppPtTStart()) { in debugExpand()
2019 } while ((coin = coin->next())); in debugExpand()
2026 const SkCoincidentSpans* coin = fHead; in debugMark() local
2027 if (!coin) { in debugMark()
2031 FAIL_IF(!coin->coinPtTStartWritable()->span()->upCastable(), coin); in debugMark()
2032 const SkOpSpan* start = coin->coinPtTStartWritable()->span()->upCast(); in debugMark()
2034 const SkOpSpanBase* end = coin->coinPtTEndWritable()->span(); in debugMark()
2036 const SkOpSpanBase* oStart = coin->oppPtTStartWritable()->span(); in debugMark()
2038 const SkOpSpanBase* oEnd = coin->oppPtTEndWritable()->span(); in debugMark()
2040 bool flipped = coin->flipped(); in debugMark()
2054 FAIL_IF(!coin->ordered(&ordered), coin); in debugMark()
2056 FAIL_IF(!next->upCastable(), coin); in debugMark()
2062 FAIL_IF(!oNext->upCastable(), coin); in debugMark()
2067 } while ((coin = coin->next())); in debugMark()
2074 …bugMarkCollapsed(SkPathOpsDebug::GlitchLog* log, const SkCoincidentSpans* coin, const SkOpPtT* tes… in debugMarkCollapsed() argument
2075 const SkCoincidentSpans* head = coin; in debugMarkCollapsed()
2076 while (coin) { in debugMarkCollapsed()
2077 if (coin->collapsed(test)) { in debugMarkCollapsed()
2078 if (zero_or_one(coin->coinPtTStart()->fT) && zero_or_one(coin->coinPtTEnd()->fT)) { in debugMarkCollapsed()
2079 log->record(SkPathOpsDebug::kCollapsedCoin_Glitch, coin); in debugMarkCollapsed()
2081 if (zero_or_one(coin->oppPtTStart()->fT) && zero_or_one(coin->oppPtTEnd()->fT)) { in debugMarkCollapsed()
2082 log->record(SkPathOpsDebug::kCollapsedCoin_Glitch, coin); in debugMarkCollapsed()
2084 this->debugRelease(log, head, coin); in debugMarkCollapsed()
2086 coin = coin->next(); in debugMarkCollapsed()
2232 const SkCoincidentSpans* coin = head; in DebugValidate() local
2233 while (coin) { in DebugValidate()
2234 SkASSERT(SkOpCoincidence::Ordered(coin->coinPtTStart()->segment(), in DebugValidate()
2235 coin->oppPtTStart()->segment())); in DebugValidate()
2236 SkASSERT(coin->coinPtTStart()->span()->ptT() == coin->coinPtTStart()); in DebugValidate()
2237 SkASSERT(coin->coinPtTEnd()->span()->ptT() == coin->coinPtTEnd()); in DebugValidate()
2238 SkASSERT(coin->oppPtTStart()->span()->ptT() == coin->oppPtTStart()); in DebugValidate()
2239 SkASSERT(coin->oppPtTEnd()->span()->ptT() == coin->oppPtTEnd()); in DebugValidate()
2240 coin = coin->next(); in DebugValidate()
2257 const SkCoincidentSpans* coin = head; in DebugCheckBetween() local
2258 while (coin) { in DebugCheckBetween()
2259 DebugCheckBetween(coin->coinPtTStart()->span(), coin->coinPtTEnd()->span(), in DebugCheckBetween()
2260 coin->oppPtTStart()->fT, coin->oppPtTEnd()->fT, coin->oppPtTStart()->segment(), in DebugCheckBetween()
2262 DebugCheckBetween(coin->oppPtTStart()->span(), coin->oppPtTEnd()->span(), in DebugCheckBetween()
2263 coin->coinPtTStart()->fT, coin->coinPtTEnd()->fT, coin->coinPtTStart()->segment(), in DebugCheckBetween()
2265 coin = coin->next(); in DebugCheckBetween()
2297 const SkCoincidentSpans* coin = fHead; in debugCorrectEnds() local
2298 if (!coin) { in debugCorrectEnds()
2302 coin->debugCorrectEnds(log); in debugCorrectEnds()
2303 } while ((coin = coin->next())); in debugCorrectEnds()
2456 void SkOpSpanBase::debugInsertCoinEnd(SkPathOpsDebug::GlitchLog* log, const SkOpSpanBase* coin) con… in debugInsertCoinEnd()
2457 if (containsCoinEnd(coin)) { in debugInsertCoinEnd()
2463 log->record(SkPathOpsDebug::kMarkCoinEnd_Glitch, this, coin); in debugInsertCoinEnd()
2627 void SkOpSpan::debugInsertCoincidence(SkPathOpsDebug::GlitchLog* log, const SkOpSpan* coin) const { in debugInsertCoincidence()
2628 if (containsCoincidence(coin)) { in debugInsertCoincidence()
2634 log->record(SkPathOpsDebug::kMarkCoinStart_Glitch, this, coin); in debugInsertCoincidence()