Lines Matching defs:glitches
256 static void missing_coincidence(SkPathOpsDebug::GlitchLog* glitches, const SkOpContourHead* contourList) {
260 /* result |= */ contour->debugMissingCoincidence(glitches);
265 static void move_multiples(SkPathOpsDebug::GlitchLog* glitches, const SkOpContourHead* contourList) {
268 if (contour->debugMoveMultiples(glitches), false) {
275 static void move_nearby(SkPathOpsDebug::GlitchLog* glitches, const SkOpContourHead* contourList) {
278 contour->debugMoveNearby(glitches);
292 SkPathOpsDebug::GlitchLog glitches;
297 missing_coincidence(&glitches, fContourHead);
299 move_multiples(&glitches, fContourHead);
301 move_nearby(&glitches, fContourHead);
303 fCoincidence->debugAddExpanded(&glitches);
306 fCoincidence->debugAddMissing(&glitches, &added);
308 fCoincidence->debugAddEndMovedSpans(&glitches);
310 fCoincidence->debugCorrectEnds(&glitches);
312 fCoincidence->debugExpand(&glitches);
316 fCoincidence->debugMark(&glitches);
322 if (glitches.fGlitches.count()) {
323 fCoinDictEntry.fGlitchType = glitches.fGlitches[0].fType;
354 GlitchLog glitches;
357 coincidence->debugCheckValid(&glitches); // don't call validate; spans may be inconsistent
359 contour->debugCheckHealth(&glitches);
360 contour->debugMissingCoincidence(&glitches);
363 coincidence->debugAddMissing(&glitches, &added);
364 coincidence->debugExpand(&glitches);
365 coincidence->debugAddExpanded(&glitches);
366 coincidence->debugMark(&glitches);
368 for (int index = 0; index < glitches.fGlitches.count(); ++index) {
369 const SpanGlitch& glitch = glitches.fGlitches[index];
376 for (int index = 0; index < glitches.fGlitches.count(); ++index) {
377 const SpanGlitch& glitch = glitches.fGlitches[index];
778 void SkOpSegment::debugCheckHealth(SkPathOpsDebug::GlitchLog* glitches) const {
779 debugMoveMultiples(glitches);
780 debugMoveNearby(glitches);
781 debugMissingCoincidence(glitches);
785 void SkOpSegment::debugClearAll(SkPathOpsDebug::GlitchLog* glitches) const {
788 this->debugClearOne(span, glitches);
790 this->globalState()->coincidence()->debugRelease(glitches, this);
794 void SkOpSegment::debugClearOne(const SkOpSpan* span, SkPathOpsDebug::GlitchLog* glitches) const {
795 if (span->windValue()) glitches->record(SkPathOpsDebug::kCollapsedWindValue_Glitch, span);
796 if (span->oppValue()) glitches->record(SkPathOpsDebug::kCollapsedOppValue_Glitch, span);
797 if (!span->done()) glitches->record(SkPathOpsDebug::kCollapsedDone_Glitch, span);
945 void SkOpSegment::debugMoveMultiples(SkPathOpsDebug::GlitchLog* glitches) const {
1023 oppTest->debugMergeMatches(glitches, oppSpan);
1024 oppTest->debugAddOpp(glitches, oppSpan);
1041 void SkOpSegment::debugMoveNearby(SkPathOpsDebug::GlitchLog* glitches) const {
1054 glitches->record(SkPathOpsDebug::kMoveNearbyClearAll_Glitch, this);
1057 glitches->record(SkPathOpsDebug::kMoveNearbyReleaseFinal_Glitch, spanBase, ptT);
1059 glitches->record(SkPathOpsDebug::kMoveNearbyRelease_Glitch, test, headPtT);
1073 glitches->record(SkPathOpsDebug::kMoveNearbyMergeFinal_Glitch, test);
1078 glitches->record(SkPathOpsDebug::kMoveNearbyMergeFinal_Glitch, test);
1080 glitches->record(SkPathOpsDebug::kMoveNearbyClearAll2_Glitch, this);
1084 glitches->record(SkPathOpsDebug::kMoveNearbyMerge_Glitch, spanBase);