• Home
  • Raw
  • Download

Lines Matching refs:coin

27 #define FAIL_IF(cond, coin) \  argument
28 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()
1636 const SkCoincidentSpans* coin = this->fHead; in debugAddExpanded() local
1637 if (!coin) { in debugAddExpanded()
1641 const SkOpPtT* startPtT = coin->coinPtTStart(); in debugAddExpanded()
1642 const SkOpPtT* oStartPtT = coin->oppPtTStart(); in debugAddExpanded()
1645 FAIL_IF(!startPtT->contains(oStartPtT), coin); in debugAddExpanded()
1646 SkOPASSERT(coin->coinPtTEnd()->contains(coin->oppPtTEnd())); in debugAddExpanded()
1649 const SkOpSpanBase* end = coin->coinPtTEnd()->span(); in debugAddExpanded()
1650 const SkOpSpanBase* oEnd = coin->oppPtTEnd()->span(); in debugAddExpanded()
1651 FAIL_IF(oEnd->deleted(), coin); in debugAddExpanded()
1652 FAIL_IF(!start->upCastable(), coin); in debugAddExpanded()
1654 FAIL_IF(!coin->flipped() && !oStart->upCastable(), coin); in debugAddExpanded()
1655 const SkOpSpanBase* oTest = coin->flipped() ? oStart->prev() : oStart->upCast()->next(); in debugAddExpanded()
1656 FAIL_IF(!oTest, coin); in debugAddExpanded()
1676 FAIL_IF(!walk->upCastable(), coin); in debugAddExpanded()
1679 && walk != coin->coinPtTEnd()->span()); in debugAddExpanded()
1680 FAIL_IF(!walkOpp, coin); in debugAddExpanded()
1686 FAIL_IF(!startRange, coin); in debugAddExpanded()
1689 FAIL_IF(!oStartRange, coin); in debugAddExpanded()
1691 FAIL_IF(startPart == oStartPart, coin); in debugAddExpanded()
1704 end = coin->coinPtTEnd()->span(); in debugAddExpanded()
1705 oEnd = coin->oppPtTEnd()->span(); in debugAddExpanded()
1708 FAIL_IF(!test->upCastable(), coin); in debugAddExpanded()
1714 oTest = coin->flipped() ? oTest->prev() : oTest->upCast()->next(); in debugAddExpanded()
1715 FAIL_IF(!oTest, coin); in debugAddExpanded()
1718 } while ((coin = coin->next())); in debugAddExpanded()
1982 void SkOpCoincidence::debugRelease(SkPathOpsDebug::GlitchLog* log, const SkCoincidentSpans* coin, c… in debugRelease() argument
1983 const SkCoincidentSpans* head = coin; in debugRelease()
1987 next = coin->next(); in debugRelease()
1988 if (coin == remove) { in debugRelease()
1996 log->record(SkPathOpsDebug::kReleasedSpan_Glitch, coin); in debugRelease()
1998 prev = coin; in debugRelease()
1999 } while ((coin = next)); in debugRelease()
2004 const SkCoincidentSpans* coin = fHead; in debugRelease() local
2005 if (!coin) { in debugRelease()
2009 if (coin->coinPtTStart()->segment() == deleted in debugRelease()
2010 || coin->coinPtTEnd()->segment() == deleted in debugRelease()
2011 || coin->oppPtTStart()->segment() == deleted in debugRelease()
2012 || coin->oppPtTEnd()->segment() == deleted) { in debugRelease()
2013 log->record(SkPathOpsDebug::kReleasedSpan_Glitch, coin); in debugRelease()
2015 } while ((coin = coin->next())); in debugRelease()
2021 const SkCoincidentSpans* coin = fHead; in debugExpand() local
2022 if (!coin) { in debugExpand()
2027 if (coin->debugExpand(log)) { in debugExpand()
2031 if (coin == test) { in debugExpand()
2034 if (coin->coinPtTStart() == test->coinPtTStart() in debugExpand()
2035 && coin->oppPtTStart() == test->oppPtTStart()) { in debugExpand()
2042 } while ((coin = coin->next())); in debugExpand()
2049 const SkCoincidentSpans* coin = fHead; in debugMark() local
2050 if (!coin) { in debugMark()
2054 FAIL_IF(!coin->coinPtTStartWritable()->span()->upCastable(), coin); in debugMark()
2055 const SkOpSpan* start = coin->coinPtTStartWritable()->span()->upCast(); in debugMark()
2057 const SkOpSpanBase* end = coin->coinPtTEndWritable()->span(); in debugMark()
2059 const SkOpSpanBase* oStart = coin->oppPtTStartWritable()->span(); in debugMark()
2061 const SkOpSpanBase* oEnd = coin->oppPtTEndWritable()->span(); in debugMark()
2063 bool flipped = coin->flipped(); in debugMark()
2077 FAIL_IF(!coin->ordered(&ordered), coin); in debugMark()
2079 FAIL_IF(!next->upCastable(), coin); in debugMark()
2085 FAIL_IF(!oNext->upCastable(), coin); in debugMark()
2090 } while ((coin = coin->next())); in debugMark()
2097 …bugMarkCollapsed(SkPathOpsDebug::GlitchLog* log, const SkCoincidentSpans* coin, const SkOpPtT* tes… in debugMarkCollapsed() argument
2098 const SkCoincidentSpans* head = coin; in debugMarkCollapsed()
2099 while (coin) { in debugMarkCollapsed()
2100 if (coin->collapsed(test)) { in debugMarkCollapsed()
2101 if (zero_or_one(coin->coinPtTStart()->fT) && zero_or_one(coin->coinPtTEnd()->fT)) { in debugMarkCollapsed()
2102 log->record(SkPathOpsDebug::kCollapsedCoin_Glitch, coin); in debugMarkCollapsed()
2104 if (zero_or_one(coin->oppPtTStart()->fT) && zero_or_one(coin->oppPtTEnd()->fT)) { in debugMarkCollapsed()
2105 log->record(SkPathOpsDebug::kCollapsedCoin_Glitch, coin); in debugMarkCollapsed()
2107 this->debugRelease(log, head, coin); in debugMarkCollapsed()
2109 coin = coin->next(); in debugMarkCollapsed()
2255 const SkCoincidentSpans* coin = head; in DebugValidate() local
2256 while (coin) { in DebugValidate()
2257 SkASSERT(SkOpCoincidence::Ordered(coin->coinPtTStart()->segment(), in DebugValidate()
2258 coin->oppPtTStart()->segment())); in DebugValidate()
2259 SkASSERT(coin->coinPtTStart()->span()->ptT() == coin->coinPtTStart()); in DebugValidate()
2260 SkASSERT(coin->coinPtTEnd()->span()->ptT() == coin->coinPtTEnd()); in DebugValidate()
2261 SkASSERT(coin->oppPtTStart()->span()->ptT() == coin->oppPtTStart()); in DebugValidate()
2262 SkASSERT(coin->oppPtTEnd()->span()->ptT() == coin->oppPtTEnd()); in DebugValidate()
2263 coin = coin->next(); in DebugValidate()
2280 const SkCoincidentSpans* coin = head; in DebugCheckBetween() local
2281 while (coin) { in DebugCheckBetween()
2282 DebugCheckBetween(coin->coinPtTStart()->span(), coin->coinPtTEnd()->span(), in DebugCheckBetween()
2283 coin->oppPtTStart()->fT, coin->oppPtTEnd()->fT, coin->oppPtTStart()->segment(), in DebugCheckBetween()
2285 DebugCheckBetween(coin->oppPtTStart()->span(), coin->oppPtTEnd()->span(), in DebugCheckBetween()
2286 coin->coinPtTStart()->fT, coin->coinPtTEnd()->fT, coin->coinPtTStart()->segment(), in DebugCheckBetween()
2288 coin = coin->next(); in DebugCheckBetween()
2320 const SkCoincidentSpans* coin = fHead; in debugCorrectEnds() local
2321 if (!coin) { in debugCorrectEnds()
2325 coin->debugCorrectEnds(log); in debugCorrectEnds()
2326 } while ((coin = coin->next())); in debugCorrectEnds()
2479 void SkOpSpanBase::debugInsertCoinEnd(SkPathOpsDebug::GlitchLog* log, const SkOpSpanBase* coin) con… in debugInsertCoinEnd()
2480 if (containsCoinEnd(coin)) { in debugInsertCoinEnd()
2486 log->record(SkPathOpsDebug::kMarkCoinEnd_Glitch, this, coin); in debugInsertCoinEnd()
2650 void SkOpSpan::debugInsertCoincidence(SkPathOpsDebug::GlitchLog* log, const SkOpSpan* coin) const { in debugInsertCoincidence()
2651 if (containsCoincidence(coin)) { in debugInsertCoincidence()
2657 log->record(SkPathOpsDebug::kMarkCoinStart_Glitch, this, coin); in debugInsertCoincidence()