Lines Matching refs:fPathRef
128 : fPathRef(SkPathRef::CreateEmpty()) { in SkPath()
145 : fPathRef(SkRef(that.fPathRef.get())) { in SkPath()
158 fPathRef.reset(SkRef(that.fPathRef.get())); in operator =()
179 (a.fFillType == b.fFillType && *a.fPathRef.get() == *b.fPathRef.get()); in operator ==()
184 fPathRef.swap(that.fPathRef); in swap()
197 int count = fPathRef->countVerbs(); in isInterpolatable()
198 if (count != compare.fPathRef->countVerbs()) { in isInterpolatable()
204 if (memcmp(fPathRef->verbsMemBegin(), compare.fPathRef->verbsMemBegin(), in isInterpolatable()
208 return !fPathRef->countWeights() || in isInterpolatable()
209 !SkToBool(memcmp(fPathRef->conicWeights(), compare.fPathRef->conicWeights(), in isInterpolatable()
210 fPathRef->countWeights() * sizeof(*fPathRef->conicWeights()))); in isInterpolatable()
214 int verbCount = fPathRef->countVerbs(); in interpolate()
215 if (verbCount != ending.fPathRef->countVerbs()) { in interpolate()
223 fPathRef->interpolate(*ending.fPathRef, weight, out->fPathRef); in interpolate()
330 uint32_t genID = fPathRef->genID(); in getGenerationID()
341 fPathRef.reset(SkPathRef::CreateEmpty()); in reset()
348 SkPathRef::Rewind(&fPathRef); in rewind()
353 int verbCount = fPathRef->countVerbs(); in isLastContourClosed()
357 return kClose_Verb == fPathRef->atVerb(verbCount - 1); in isLastContourClosed()
361 int verbCount = fPathRef->countVerbs(); in isLine()
364 SkASSERT(kMove_Verb == fPathRef->atVerb(0)); in isLine()
365 if (kLine_Verb == fPathRef->atVerb(1)) { in isLine()
366 SkASSERT(2 == fPathRef->countPoints()); in isLine()
368 const SkPoint* pts = fPathRef->points(); in isLine()
441 int verbCnt = fPathRef->countVerbs(); in isRectContour()
443 uint8_t verb = insertClose ? (uint8_t) kClose_Verb : fPathRef->atVerb(*currVerb); in isRectContour()
555 const SkPoint* pts = fPathRef->points(); in isRect()
575 const SkPoint* pts = fPathRef->points(); in isNestedFillRects()
587 pts = fPathRef->points() + fPathRef->countPoints(); in isNestedFillRects()
617 return fPathRef->countPoints(); in countPoints()
625 int count = SkMin32(max, fPathRef->countPoints()); in getPoints()
626 sk_careful_memcpy(dst, fPathRef->points(), count * sizeof(SkPoint)); in getPoints()
627 return fPathRef->countPoints(); in getPoints()
631 if ((unsigned)index < (unsigned)fPathRef->countPoints()) { in getPoint()
632 return fPathRef->atPoint(index); in getPoint()
638 return fPathRef->countVerbs(); in countVerbs()
654 int count = SkMin32(max, fPathRef->countVerbs()); in getVerbs()
655 copy_verbs_reverse(dst, fPathRef->verbs(), count); in getVerbs()
656 return fPathRef->countVerbs(); in getVerbs()
662 int count = fPathRef->countPoints(); in getLastPt()
665 *lastPt = fPathRef->atPoint(count - 1); in getLastPt()
678 int count = fPathRef->countPoints(); in setPt()
682 SkPathRef::Editor ed(&fPathRef); in setPt()
690 int count = fPathRef->countPoints(); in setLastPt()
694 SkPathRef::Editor ed(&fPathRef); in setLastPt()
716 SkPathRef::Editor(&fPathRef, inc, inc); in incReserve()
723 SkPathRef::Editor ed(&fPathRef); in moveTo()
726 fLastMoveToIndex = fPathRef->countPoints(); in moveTo()
742 if (fPathRef->countVerbs() == 0) { in injectMoveToIfNeeded()
745 const SkPoint& pt = fPathRef->atPoint(~fLastMoveToIndex); in injectMoveToIfNeeded()
758 SkPathRef::Editor ed(&fPathRef); in lineTo()
776 SkPathRef::Editor ed(&fPathRef); in quadTo()
806 SkPathRef::Editor ed(&fPathRef); in conicTo()
829 SkPathRef::Editor ed(&fPathRef); in cubicTo()
850 int count = fPathRef->countVerbs(); in close()
852 switch (fPathRef->atVerb(count - 1)) { in close()
858 SkPathRef::Editor ed(&fPathRef); in close()
1003 fLastMoveToIndex = fPathRef->countPoints(); in addPoly()
1006 SkPathRef::Editor ed(&fPathRef, count+close, count); in addPoly()
1163 SkPathRef::Editor ed(&fPathRef); in addRRect()
1169 SkDEBUGCODE(fPathRef->validate();) in addRRect()
1173 int count = fPathRef->countVerbs(); in hasOnlyMoveTos()
1174 const uint8_t* verbs = const_cast<const SkPathRef*>(fPathRef.get())->verbsMemBegin(); in hasOnlyMoveTos()
1188 int count = fPathRef->countPoints(); in isZeroLength()
1192 const SkPoint* pts = fPathRef.get()->points(); in isZeroLength()
1260 SkPathRef::Editor ed(&fPathRef); in addOval()
1277 if (fPathRef->countVerbs() == 0) { in arcTo()
1480 SkPathRef::Editor(&fPathRef, path.countVerbs(), path.countPoints()); in addPath()
1544 int i, vcount = path.fPathRef->countVerbs(); in reversePathTo()
1550 SkPathRef::Editor(&fPathRef, vcount, path.countPoints()); in reversePathTo()
1552 const uint8_t* verbs = path.fPathRef->verbs(); in reversePathTo()
1553 const SkPoint* pts = path.fPathRef->points(); in reversePathTo()
1554 const SkScalar* conicWeights = path.fPathRef->conicWeights(); in reversePathTo()
1591 SkPathRef::Editor ed(&fPathRef, src.fPathRef->countPoints(), src.fPathRef->countVerbs()); in reverseAddPath()
1593 const SkPoint* pts = src.fPathRef->pointsEnd(); in reverseAddPath()
1595 const uint8_t* verbs = src.fPathRef->verbsMemBegin(); // points at the last verb in reverseAddPath()
1596 const uint8_t* verbsEnd = src.fPathRef->verbs(); // points just past the first verb in reverseAddPath()
1597 const SkScalar* conicWeights = src.fPathRef->conicWeightsEnd(); in reverseAddPath()
1707 SkPathRef::Editor ed(&dst->fPathRef); in transform()
1711 SkPathRef::CreateTransformedCopy(&dst->fPathRef, *fPathRef.get(), matrix); in transform()
1771 fPts = path.fPathRef->points(); in setPath()
1772 fVerbs = path.fPathRef->verbs(); in setPath()
1773 fVerbStop = path.fPathRef->verbsMemBegin(); in setPath()
1774 fConicWeights = path.fPathRef->conicWeights() - 1; // begin one behind in setPath()
2014 const int byteCount = sizeof(int32_t) * 2 + fPathRef->writeSize(); in writeToMemory()
2029 fPathRef->writeToBuffer(&buffer); in writeToMemory()
2057 fPathRef.reset(pathRef); in readFromMemory()
2185 bool isFinite = compute_pt_bounds(&bounds, *fPathRef.get()); in validate()
2188 if (fPathRef->countPoints() <= 1) { in validate()
2652 ContourIter iter(*path.fPathRef.get()); in CheapComputeFirstDirection()