Lines Matching refs:coin

25 #define FAIL_IF(cond, coin) \  argument
26 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()
1632 const SkCoincidentSpans* coin = this->fHead; in debugAddExpanded() local
1633 if (!coin) { in debugAddExpanded()
1637 const SkOpPtT* startPtT = coin->coinPtTStart(); in debugAddExpanded()
1638 const SkOpPtT* oStartPtT = coin->oppPtTStart(); in debugAddExpanded()
1641 FAIL_IF(!startPtT->contains(oStartPtT), coin); in debugAddExpanded()
1642 SkOPASSERT(coin->coinPtTEnd()->contains(coin->oppPtTEnd())); in debugAddExpanded()
1645 const SkOpSpanBase* end = coin->coinPtTEnd()->span(); in debugAddExpanded()
1646 const SkOpSpanBase* oEnd = coin->oppPtTEnd()->span(); in debugAddExpanded()
1647 FAIL_IF(oEnd->deleted(), coin); in debugAddExpanded()
1648 FAIL_IF(!start->upCastable(), coin); in debugAddExpanded()
1650 FAIL_IF(!coin->flipped() && !oStart->upCastable(), coin); in debugAddExpanded()
1651 const SkOpSpanBase* oTest = coin->flipped() ? oStart->prev() : oStart->upCast()->next(); in debugAddExpanded()
1652 FAIL_IF(!oTest, coin); in debugAddExpanded()
1672 FAIL_IF(!walk->upCastable(), coin); in debugAddExpanded()
1675 && walk != coin->coinPtTEnd()->span()); in debugAddExpanded()
1676 FAIL_IF(!walkOpp, coin); in debugAddExpanded()
1682 FAIL_IF(!startRange, coin); in debugAddExpanded()
1685 FAIL_IF(!oStartRange, coin); in debugAddExpanded()
1687 FAIL_IF(startPart == oStartPart, coin); in debugAddExpanded()
1700 end = coin->coinPtTEnd()->span(); in debugAddExpanded()
1701 oEnd = coin->oppPtTEnd()->span(); in debugAddExpanded()
1704 FAIL_IF(!test->upCastable(), coin); in debugAddExpanded()
1710 oTest = coin->flipped() ? oTest->prev() : oTest->upCast()->next(); in debugAddExpanded()
1711 FAIL_IF(!oTest, coin); in debugAddExpanded()
1714 } while ((coin = coin->next())); in debugAddExpanded()
1974 void SkOpCoincidence::debugRelease(SkPathOpsDebug::GlitchLog* log, const SkCoincidentSpans* coin, c… in debugRelease() argument
1975 const SkCoincidentSpans* head = coin; in debugRelease()
1979 next = coin->next(); in debugRelease()
1980 if (coin == remove) { in debugRelease()
1988 log->record(SkPathOpsDebug::kReleasedSpan_Glitch, coin); in debugRelease()
1990 prev = coin; in debugRelease()
1991 } while ((coin = next)); in debugRelease()
1996 const SkCoincidentSpans* coin = fHead; in debugRelease() local
1997 if (!coin) { in debugRelease()
2001 if (coin->coinPtTStart()->segment() == deleted in debugRelease()
2002 || coin->coinPtTEnd()->segment() == deleted in debugRelease()
2003 || coin->oppPtTStart()->segment() == deleted in debugRelease()
2004 || coin->oppPtTEnd()->segment() == deleted) { in debugRelease()
2005 log->record(SkPathOpsDebug::kReleasedSpan_Glitch, coin); in debugRelease()
2007 } while ((coin = coin->next())); in debugRelease()
2013 const SkCoincidentSpans* coin = fHead; in debugExpand() local
2014 if (!coin) { in debugExpand()
2019 if (coin->debugExpand(log)) { in debugExpand()
2023 if (coin == test) { in debugExpand()
2026 if (coin->coinPtTStart() == test->coinPtTStart() in debugExpand()
2027 && coin->oppPtTStart() == test->oppPtTStart()) { in debugExpand()
2034 } while ((coin = coin->next())); in debugExpand()
2041 const SkCoincidentSpans* coin = fHead; in debugMark() local
2042 if (!coin) { in debugMark()
2046 FAIL_IF(!coin->coinPtTStartWritable()->span()->upCastable(), coin); in debugMark()
2047 const SkOpSpan* start = coin->coinPtTStartWritable()->span()->upCast(); in debugMark()
2049 const SkOpSpanBase* end = coin->coinPtTEndWritable()->span(); in debugMark()
2051 const SkOpSpanBase* oStart = coin->oppPtTStartWritable()->span(); in debugMark()
2053 const SkOpSpanBase* oEnd = coin->oppPtTEndWritable()->span(); in debugMark()
2055 bool flipped = coin->flipped(); in debugMark()
2068 FAIL_IF(!coin->ordered(&ordered), coin); in debugMark()
2070 FAIL_IF(!next->upCastable(), coin); in debugMark()
2076 FAIL_IF(!oNext->upCastable(), coin); in debugMark()
2081 } while ((coin = coin->next())); in debugMark()
2088 …bugMarkCollapsed(SkPathOpsDebug::GlitchLog* log, const SkCoincidentSpans* coin, const SkOpPtT* tes… in debugMarkCollapsed() argument
2089 const SkCoincidentSpans* head = coin; in debugMarkCollapsed()
2090 while (coin) { in debugMarkCollapsed()
2091 if (coin->collapsed(test)) { in debugMarkCollapsed()
2092 if (zero_or_one(coin->coinPtTStart()->fT) && zero_or_one(coin->coinPtTEnd()->fT)) { in debugMarkCollapsed()
2093 log->record(SkPathOpsDebug::kCollapsedCoin_Glitch, coin); in debugMarkCollapsed()
2095 if (zero_or_one(coin->oppPtTStart()->fT) && zero_or_one(coin->oppPtTEnd()->fT)) { in debugMarkCollapsed()
2096 log->record(SkPathOpsDebug::kCollapsedCoin_Glitch, coin); in debugMarkCollapsed()
2098 this->debugRelease(log, head, coin); in debugMarkCollapsed()
2100 coin = coin->next(); in debugMarkCollapsed()
2242 const SkCoincidentSpans* coin = head; in DebugValidate() local
2243 while (coin) { in DebugValidate()
2244 SkASSERT(SkOpCoincidence::Ordered(coin->coinPtTStart()->segment(), in DebugValidate()
2245 coin->oppPtTStart()->segment())); in DebugValidate()
2246 SkASSERT(coin->coinPtTStart()->span()->ptT() == coin->coinPtTStart()); in DebugValidate()
2247 SkASSERT(coin->coinPtTEnd()->span()->ptT() == coin->coinPtTEnd()); in DebugValidate()
2248 SkASSERT(coin->oppPtTStart()->span()->ptT() == coin->oppPtTStart()); in DebugValidate()
2249 SkASSERT(coin->oppPtTEnd()->span()->ptT() == coin->oppPtTEnd()); in DebugValidate()
2250 coin = coin->next(); in DebugValidate()
2267 const SkCoincidentSpans* coin = head; in DebugCheckBetween() local
2268 while (coin) { in DebugCheckBetween()
2269 DebugCheckBetween(coin->coinPtTStart()->span(), coin->coinPtTEnd()->span(), in DebugCheckBetween()
2270 coin->oppPtTStart()->fT, coin->oppPtTEnd()->fT, coin->oppPtTStart()->segment(), in DebugCheckBetween()
2272 DebugCheckBetween(coin->oppPtTStart()->span(), coin->oppPtTEnd()->span(), in DebugCheckBetween()
2273 coin->coinPtTStart()->fT, coin->coinPtTEnd()->fT, coin->coinPtTStart()->segment(), in DebugCheckBetween()
2275 coin = coin->next(); in DebugCheckBetween()
2307 const SkCoincidentSpans* coin = fHead; in debugCorrectEnds() local
2308 if (!coin) { in debugCorrectEnds()
2312 coin->debugCorrectEnds(log); in debugCorrectEnds()
2313 } while ((coin = coin->next())); in debugCorrectEnds()
2466 void SkOpSpanBase::debugInsertCoinEnd(SkPathOpsDebug::GlitchLog* log, const SkOpSpanBase* coin) con… in debugInsertCoinEnd()
2467 if (containsCoinEnd(coin)) { in debugInsertCoinEnd()
2473 log->record(SkPathOpsDebug::kMarkCoinEnd_Glitch, this, coin); in debugInsertCoinEnd()
2637 void SkOpSpan::debugInsertCoincidence(SkPathOpsDebug::GlitchLog* log, const SkOpSpan* coin) const { in debugInsertCoincidence()
2638 if (containsCoincidence(coin)) { in debugInsertCoincidence()
2644 log->record(SkPathOpsDebug::kMarkCoinStart_Glitch, this, coin); in debugInsertCoincidence()