Lines Matching refs:lastRing

476 GrAAConvexTessellator::Ring* GrAAConvexTessellator::getNextRing(Ring* lastRing) {  in getNextRing()  argument
484 int nextRing = (lastRing == &fRings[0]) ? 1 : 0; in getNextRing()
662 bool GrAAConvexTessellator::createInsetRing(const Ring& lastRing, Ring* nextRing, in createInsetRing() argument
674 for (int cur = 0; cur < lastRing.numPts(); ++cur) { in createInsetRing()
675 int next = (cur + 1) % lastRing.numPts(); in createInsetRing()
678 bool result = intersect(this->point(lastRing.index(cur)), lastRing.bisector(cur), in createInsetRing()
679 this->point(lastRing.index(next)), lastRing.bisector(next), in createInsetRing()
686 SkScalar dist = -t * lastRing.norm(cur).dot(lastRing.bisector(cur)); in createInsetRing()
698 SkPoint newPt = lastRing.bisector(minEdgeIdx); in createInsetRing()
700 newPt += this->point(lastRing.index(minEdgeIdx)); in createInsetRing()
702 SkScalar depth = this->computeDepthFromEdge(lastRing.origEdgeID(minEdgeIdx), newPt); in createInsetRing()
713 dst.setCount(lastRing.numPts()); in createInsetRing()
716 if (!this->computePtAlongBisector(lastRing.index(0), in createInsetRing()
717 lastRing.bisector(0), in createInsetRing()
718 lastRing.origEdgeID(0), in createInsetRing()
720 this->terminate(lastRing); in createInsetRing()
724 lastRing.index(0), lastRing.origEdgeID(0), in createInsetRing()
725 !this->movable(lastRing.index(0))); in createInsetRing()
728 for (int cur = 1; cur < lastRing.numPts()-1; ++cur) { in createInsetRing()
729 if (!this->computePtAlongBisector(lastRing.index(cur), in createInsetRing()
730 lastRing.bisector(cur), in createInsetRing()
731 lastRing.origEdgeID(cur), in createInsetRing()
733 this->terminate(lastRing); in createInsetRing()
738 lastRing.index(cur), lastRing.origEdgeID(cur), in createInsetRing()
739 !this->movable(lastRing.index(cur))); in createInsetRing()
741 dst[cur] = fCandidateVerts.fuseWithPrior(lastRing.origEdgeID(cur)); in createInsetRing()
746 int cur = lastRing.numPts()-1; in createInsetRing()
747 if (!this->computePtAlongBisector(lastRing.index(cur), in createInsetRing()
748 lastRing.bisector(cur), in createInsetRing()
749 lastRing.origEdgeID(cur), in createInsetRing()
751 this->terminate(lastRing); in createInsetRing()
759 lastRing.index(cur), lastRing.origEdgeID(cur), in createInsetRing()
760 !this->movable(lastRing.index(cur))); in createInsetRing()
762 dst[cur] = fCandidateVerts.fuseWithPrior(lastRing.origEdgeID(cur)); in createInsetRing()
769 dst[cur] = fCandidateVerts.fuseWithPrior(lastRing.origEdgeID(cur)); in createInsetRing()
806 for (int i = 0; i < lastRing.numPts(); ++i) { in createInsetRing()
807 int next = (i + 1) % lastRing.numPts(); in createInsetRing()
809 this->addTri(lastRing.index(i), lastRing.index(next), dst[next]); in createInsetRing()
810 this->addTri(lastRing.index(i), dst[next], dst[i]); in createInsetRing()