Home
last modified time | relevance | path

Searched refs:opp (Results 1 – 25 of 64) sorted by relevance

123

/external/skqp/src/pathops/
DSkPathOpsTSect.cpp80 SkTSpan* opp = this->spanAtT(t, &priorSpan); in addForPerp() local
81 if (!opp) { in addForPerp()
82 opp = this->addFollowing(priorSpan); in addForPerp()
85 priorSpan->debugID() : -1, t, opp->debugID()); in addForPerp()
89 opp->dump(); SkDebugf("\n"); in addForPerp()
91 priorSpan->debugID() : -1, opp->debugID()); in addForPerp()
93 opp->addBounded(span, &fHeap); in addForPerp()
94 span->addBounded(opp, &fHeap); in addForPerp()
152 const SkTSpan* opp) const { in findOppSpan()
156 if (opp == test) { in findOppSpan()
[all …]
DSkPathOpsTSect.h131 SkTSpan* findOppSpan(const SkTSpan* opp) const;
165 bool onlyEndPointsInCommon(const SkTSpan* opp, bool* start,
185 bool removeBounded(const SkTSpan* opp);
215 int hullCheck(const SkTSpan* opp, bool* start, bool* oppStart);
316 int intersects(SkTSpan* span, SkTSect* opp,
318 bool isParallel(const SkDLine& thisLine, const SkTSect* opp) const;
319 int linesIntersect(SkTSpan* span, SkTSect* opp,
332 bool removeByPerpendicular(SkTSect* opp);
336 SkTSect* opp);
339 bool removeSpans(SkTSpan* span, SkTSect* opp);
[all …]
DSkOpSpan.h34 void addOpp(SkOpPtT* opp, SkOpPtT* oppPrev) { in addOpp() argument
36 SkASSERT(this != opp); in addOpp()
37 this->fNext = opp; in addOpp()
54 void debugAddOpp(const SkOpPtT* opp, const SkOpPtT* oppPrev) const;
63 const SkOpPtT* debugOppPrev(const SkOpPtT* opp) const;
104 SkOpPtT* oppPrev(const SkOpPtT* opp) const { in oppPrev() argument
106 SkOpPtT* oppPrev = opp->fNext; in oppPrev()
110 while (oppPrev->fNext != opp) { in oppPrev()
186 bool addOpp(SkOpSpanBase* opp);
229 void debugAddOpp(SkPathOpsDebug::GlitchLog* , const SkOpSpanBase* opp) const;
[all …]
DSkPathOpsQuad.cpp55 double opp = endPt[1]->fY - origY; in hullIntersects() local
56 double sign = (fPts[oddMan].fY - origY) * adj - (fPts[oddMan].fX - origX) * opp; in hullIntersects()
63 double test = (q2[n].fY - origY) * adj - (q2[n].fX - origX) * opp; in hullIntersects()
103 for (int opp = 1; opp < kPointCount; ++opp) { in otherPts() local
104 int end = (oddMan ^ opp) - oddMan; // choose a value not equal to oddMan in otherPts()
106 endPt[opp - 1] = &fPts[end]; in otherPts()
DSkOpSpan.cpp152 bool SkOpSpanBase::addOpp(SkOpSpanBase* opp) { in addOpp() argument
153 SkOpPtT* oppPrev = this->ptT()->oppPrev(opp->ptT()); in addOpp()
157 FAIL_IF(!this->mergeMatches(opp)); in addOpp()
158 this->ptT()->addOpp(opp->ptT(), oppPrev); in addOpp()
307 bool SkOpSpanBase::mergeMatches(SkOpSpanBase* opp) { in mergeMatches() argument
326 SkOpPtT* inner = opp->ptT(); in mergeMatches()
DSkOpSegment.cpp197 const SkOpPtT* SkOpSegment::existing(double t, const SkOpSegment* opp) const { in existing()
212 if (!opp) { in existing()
225 return opp && !test->contains(opp) ? nullptr : testPtT; in existing()
833 bool SkOpSegment::isClose(double t, const SkOpSegment* opp) const { in isClose()
838 (*CurveIntersectRay[opp->verb()])(opp->pts(), opp->weight(), perp, &i); in isClose()
1139 SkOpSegment* opp = ptT->segment(); in ClearVisited() local
1140 opp->resetVisited(); in ClearVisited()
1173 SkOpSegment* opp = ptT->span()->segment(); in missingCoincidence() local
1174 if (opp->done()) { in missingCoincidence()
1178 if (!opp->visited()) { in missingCoincidence()
[all …]
DSkPathOpsCurve.cpp13 double SkDCurve::nearPoint(SkPath::Verb verb, const SkDPoint& xy, const SkDPoint& opp) const { in nearPoint()
34 SkDLine perp = {{ xy, { xy.fX + opp.fY - xy.fY, xy.fY + xy.fX - opp.fX }}}; in nearPoint()
DSkPathOpsDebug.cpp136 const SkCoincidentSpans* opp = NULL) { in record()
140 if (opp) { in record()
141 glitch->fOppSpan = opp->coinPtTStart(); in record()
142 glitch->fOppEndSpan = opp->coinPtTEnd(); in record()
844 const SkOpSegment* opp = ptT->segment(); in DebugClearVisited() local
845 opp->resetDebugVisited(); in DebugClearVisited()
876 const SkOpSegment* opp = ptT->span()->segment(); in debugMissingCoincidence() local
877 if (opp->done()) { in debugMissingCoincidence()
881 if (!opp->debugVisited()) { in debugMissingCoincidence()
893 …if (span && span->segment() != opp && span->containsCoincidence(opp)) { // debug has additional c… in debugMissingCoincidence()
[all …]
DSkOpSegment.h78 SkOpPtT* addMissing(double t, SkOpSegment* opp, bool* allExist);
186 double distSq(double t, const SkOpAngle* opp) const;
213 const SkOpPtT* existing(double t, const SkOpSegment* opp) const;
248 bool isClose(double t, const SkOpSegment* opp) const;
396 const SkOpSpanBase* spanBase, const SkOpSegment* opp) const;
DSkOpCoincidence.h237 static bool Ordered(const SkOpSegment* coin, const SkOpSegment* opp);
264 bool contains(const SkOpSegment* seg, const SkOpSegment* opp, double oppT) const;
266 const SkOpSegment* opp, double oppT) const;
DSkOpCoincidence.cpp167 const SkOpPtT* opp = next->contains(oppSeg); in ordered() local
168 if (!opp) { in ordered()
172 if ((oppLastT > opp->fT) != flipped) { in ordered()
176 oppLastT = opp->fT; in ordered()
934 bool SkOpCoincidence::contains(const SkOpSegment* seg, const SkOpSegment* opp, double oppT) const { in contains() argument
935 if (this->contains(fHead, seg, opp, oppT)) { in contains()
938 if (this->contains(fTop, seg, opp, oppT)) { in contains()
945 const SkOpSegment* opp, double oppT) const { in contains() argument
950 if (coin->coinPtTStart()->segment() == seg && coin->oppPtTStart()->segment() == opp in contains()
954 if (coin->oppPtTStart()->segment() == seg && coin->coinPtTStart()->segment() == opp in contains()
/external/skia/src/pathops/
DSkPathOpsTSect.cpp81 SkTSpan* opp = this->spanAtT(t, &priorSpan); in addForPerp() local
82 if (!opp) { in addForPerp()
83 opp = this->addFollowing(priorSpan); in addForPerp()
86 priorSpan->debugID() : -1, t, opp->debugID()); in addForPerp()
90 opp->dump(); SkDebugf("\n"); in addForPerp()
92 priorSpan->debugID() : -1, opp->debugID()); in addForPerp()
94 opp->addBounded(span, &fHeap); in addForPerp()
95 span->addBounded(opp, &fHeap); in addForPerp()
153 const SkTSpan* opp) const { in findOppSpan()
157 if (opp == test) { in findOppSpan()
[all …]
DSkPathOpsTSect.h130 SkTSpan* findOppSpan(const SkTSpan* opp) const;
164 bool onlyEndPointsInCommon(const SkTSpan* opp, bool* start,
184 bool removeBounded(const SkTSpan* opp);
214 int hullCheck(const SkTSpan* opp, bool* start, bool* oppStart);
315 int intersects(SkTSpan* span, SkTSect* opp,
317 bool isParallel(const SkDLine& thisLine, const SkTSect* opp) const;
318 int linesIntersect(SkTSpan* span, SkTSect* opp,
331 bool removeByPerpendicular(SkTSect* opp);
335 SkTSect* opp);
338 bool removeSpans(SkTSpan* span, SkTSect* opp);
[all …]
DSkOpSpan.h34 void addOpp(SkOpPtT* opp, SkOpPtT* oppPrev) { in addOpp() argument
36 SkASSERT(this != opp); in addOpp()
37 this->fNext = opp; in addOpp()
54 void debugAddOpp(const SkOpPtT* opp, const SkOpPtT* oppPrev) const;
63 const SkOpPtT* debugOppPrev(const SkOpPtT* opp) const;
104 SkOpPtT* oppPrev(const SkOpPtT* opp) const { in oppPrev() argument
106 SkOpPtT* oppPrev = opp->fNext; in oppPrev()
110 while (oppPrev->fNext != opp) { in oppPrev()
186 bool addOpp(SkOpSpanBase* opp);
229 void debugAddOpp(SkPathOpsDebug::GlitchLog* , const SkOpSpanBase* opp) const;
[all …]
DSkPathOpsQuad.cpp55 double opp = endPt[1]->fY - origY; in hullIntersects() local
56 double sign = (fPts[oddMan].fY - origY) * adj - (fPts[oddMan].fX - origX) * opp; in hullIntersects()
63 double test = (q2[n].fY - origY) * adj - (q2[n].fX - origX) * opp; in hullIntersects()
103 for (int opp = 1; opp < kPointCount; ++opp) { in otherPts() local
104 int end = (oddMan ^ opp) - oddMan; // choose a value not equal to oddMan in otherPts()
106 endPt[opp - 1] = &fPts[end]; in otherPts()
DSkOpSpan.cpp152 bool SkOpSpanBase::addOpp(SkOpSpanBase* opp) { in addOpp() argument
153 SkOpPtT* oppPrev = this->ptT()->oppPrev(opp->ptT()); in addOpp()
157 FAIL_IF(!this->mergeMatches(opp)); in addOpp()
158 this->ptT()->addOpp(opp->ptT(), oppPrev); in addOpp()
307 bool SkOpSpanBase::mergeMatches(SkOpSpanBase* opp) { in mergeMatches() argument
326 SkOpPtT* inner = opp->ptT(); in mergeMatches()
DSkOpSegment.cpp197 const SkOpPtT* SkOpSegment::existing(double t, const SkOpSegment* opp) const { in existing()
212 if (!opp) { in existing()
225 return opp && !test->contains(opp) ? nullptr : testPtT; in existing()
833 bool SkOpSegment::isClose(double t, const SkOpSegment* opp) const { in isClose()
838 (*CurveIntersectRay[opp->verb()])(opp->pts(), opp->weight(), perp, &i); in isClose()
1139 SkOpSegment* opp = ptT->segment(); in ClearVisited() local
1140 opp->resetVisited(); in ClearVisited()
1173 SkOpSegment* opp = ptT->span()->segment(); in missingCoincidence() local
1174 if (opp->done()) { in missingCoincidence()
1178 if (!opp->visited()) { in missingCoincidence()
[all …]
DSkPathOpsCurve.cpp13 double SkDCurve::nearPoint(SkPath::Verb verb, const SkDPoint& xy, const SkDPoint& opp) const { in nearPoint()
34 SkDLine perp = {{ xy, { xy.fX + opp.fY - xy.fY, xy.fY + xy.fX - opp.fX }}}; in nearPoint()
DSkPathOpsDebug.cpp136 const SkCoincidentSpans* opp = NULL) { in record()
140 if (opp) { in record()
141 glitch->fOppSpan = opp->coinPtTStart(); in record()
142 glitch->fOppEndSpan = opp->coinPtTEnd(); in record()
821 const SkOpSegment* opp = ptT->segment(); in DebugClearVisited() local
822 opp->resetDebugVisited(); in DebugClearVisited()
853 const SkOpSegment* opp = ptT->span()->segment(); in debugMissingCoincidence() local
854 if (opp->done()) { in debugMissingCoincidence()
858 if (!opp->debugVisited()) { in debugMissingCoincidence()
870 …if (span && span->segment() != opp && span->containsCoincidence(opp)) { // debug has additional c… in debugMissingCoincidence()
[all …]
DSkOpSegment.h78 SkOpPtT* addMissing(double t, SkOpSegment* opp, bool* allExist);
186 double distSq(double t, const SkOpAngle* opp) const;
213 const SkOpPtT* existing(double t, const SkOpSegment* opp) const;
248 bool isClose(double t, const SkOpSegment* opp) const;
396 const SkOpSpanBase* spanBase, const SkOpSegment* opp) const;
DSkOpCoincidence.h237 static bool Ordered(const SkOpSegment* coin, const SkOpSegment* opp);
264 bool contains(const SkOpSegment* seg, const SkOpSegment* opp, double oppT) const;
266 const SkOpSegment* opp, double oppT) const;
/external/swiftshader/third_party/subzero/src/
DIceConditionCodesX8664.h28 #define X(val, encode, opp, dump, emit) val = encode, argument
DIceConditionCodesMIPS32.h32 #define X(tag, opp, emit) tag, argument
DIceConditionCodesX8632.h32 #define X(val, encode, opp, dump, emit) val = encode, argument
DIceConditionCodesARM32.h32 #define X(tag, encode, opp, emit) tag = encode, argument

123