Lines Matching refs:fPathRef
147 : fPathRef(SkPathRef::CreateEmpty()) {
154 : fPathRef(std::move(pr))
163 //fPathRef is assumed to have been emptied by the caller.
174 : fPathRef(SkRef(that.fPathRef.get())) {
187 fPathRef.reset(SkRef(that.fPathRef.get()));
195 //fPathRef is assumed to have been set by the caller.
209 (a.fFillType == b.fFillType && *a.fPathRef == *b.fPathRef);
214 fPathRef.swap(that.fPathRef);
238 return fPathRef->fPoints.count() == compare.fPathRef->fPoints.count() &&
239 fPathRef->fVerbs == compare.fPathRef->fVerbs &&
240 fPathRef->fConicWeights == compare.fPathRef->fConicWeights;
244 int pointCount = fPathRef->countPoints();
245 if (pointCount != ending.fPathRef->countPoints()) {
253 fPathRef->interpolate(*ending.fPathRef, weight, out->fPathRef.get());
351 uint32_t genID = fPathRef->genID();
362 fPathRef.reset(SkPathRef::CreateEmpty());
370 SkPathRef::Rewind(&fPathRef);
376 int verbCount = fPathRef->countVerbs();
380 return kClose_Verb == fPathRef->atVerb(verbCount - 1);
384 int verbCount = fPathRef->countVerbs();
387 SkASSERT(kMove_Verb == fPathRef->atVerb(0));
388 if (kLine_Verb == fPathRef->atVerb(1)) {
389 SkASSERT(2 == fPathRef->countPoints());
391 const SkPoint* pts = fPathRef->points();
454 const SkPoint* pts = fPathRef->points();
467 return fPathRef->countPoints();
475 int count = std::min(max, fPathRef->countPoints());
476 sk_careful_memcpy(dst, fPathRef->points(), count * sizeof(SkPoint));
477 return fPathRef->countPoints();
481 if ((unsigned)index < (unsigned)fPathRef->countPoints()) {
482 return fPathRef->atPoint(index);
488 return fPathRef->countVerbs();
496 int count = std::min(max, fPathRef->countVerbs());
498 memcpy(dst, fPathRef->verbsBegin(), count);
500 return fPathRef->countVerbs();
505 if (fPathRef != nullptr) {
506 size += fPathRef->approximateBytesUsed();
514 int count = fPathRef->countPoints();
517 *lastPt = fPathRef->atPoint(count - 1);
530 int count = fPathRef->countPoints();
534 SkPathRef::Editor ed(&fPathRef);
542 int count = fPathRef->countPoints();
546 SkPathRef::Editor ed(&fPathRef);
602 SkASSERT(fPathRef->dataMatchesVerbs());
612 SkPathRef::Editor(&fPathRef, inc, inc);
620 SkPathRef::Editor ed(&fPathRef);
623 fLastMoveToIndex = fPathRef->countPoints();
632 int count = fPathRef->countPoints();
635 pt = fPathRef->atPoint(count - 1);
637 pt = fPathRef->atPoint(~fLastMoveToIndex);
646 if (fPathRef->countVerbs() == 0) {
649 const SkPoint& pt = fPathRef->atPoint(~fLastMoveToIndex);
662 SkPathRef::Editor ed(&fPathRef);
680 SkPathRef::Editor ed(&fPathRef);
710 SkPathRef::Editor ed(&fPathRef);
734 SkPathRef::Editor ed(&fPathRef);
755 int count = fPathRef->countVerbs();
757 switch (fPathRef->atVerb(count - 1)) {
763 SkPathRef::Editor ed(&fPathRef);
823 fLastMoveToIndex = fPathRef->countPoints();
826 SkPathRef::Editor ed(&fPathRef, count+close, count);
985 SkPathRef::Editor ed(&fPathRef);
991 SkDEBUGCODE(fPathRef->validate();)
996 int count = fPathRef->countVerbs();
997 const uint8_t* verbs = fPathRef->verbsBegin();
1011 int count = fPathRef->countPoints() - startPtIndex;
1015 const SkPoint* pts = fPathRef->points() + startPtIndex;
1079 SkPathRef::Editor ed(&fPathRef);
1098 if (fPathRef->countVerbs() == 0) {
1389 SkPathRef::Editor ed(&fPathRef);
1390 auto [newPts, newWeights] = ed.growForVerbsInPath(*src->fPathRef);
1391 matrix.mapPoints(newPts, src->fPathRef->points(), src->countPoints());
1392 if (int numWeights = src->fPathRef->countWeights()) {
1393 memcpy(newWeights, src->fPathRef->conicWeights(), numWeights * sizeof(newWeights[0]));
1396 if ((SkPathVerb)fPathRef->verbsEnd()[-1] == SkPathVerb::kClose) {
1450 if (path.fPathRef->fVerbs.count() == 0) {
1454 const uint8_t* verbs = path.fPathRef->verbsEnd();
1455 const uint8_t* verbsBegin = path.fPathRef->verbsBegin();
1457 const SkPoint* pts = path.fPathRef->pointsEnd() - 1;
1458 const SkScalar* conicWeights = path.fPathRef->conicWeightsEnd();
1497 const uint8_t* verbsBegin = src->fPathRef->verbsBegin();
1498 const uint8_t* verbs = src->fPathRef->verbsEnd();
1499 const SkPoint* pts = src->fPathRef->pointsEnd();
1500 const SkScalar* conicWeights = src->fPathRef->conicWeightsEnd();
1626 SkPathRef::Editor ed(&dst->fPathRef);
1632 SkPathRef::CreateTransformedCopy(&dst->fPathRef, *fPathRef, matrix);
1694 fPts = path.fPathRef->points();
1695 fVerbs = path.fPathRef->verbsBegin();
1696 fVerbStop = path.fPathRef->verbsEnd();
1697 fConicWeights = path.fPathRef->conicWeights();
2001 builder.appendf("// fBoundsIsDirty = %s\n", bool_str(fPathRef->fBoundsIsDirty));
2002 builder.appendf("// fGenerationID = %d\n", fPathRef->fGenerationID);
2003 builder.appendf("// fSegmentMask = %d\n", fPathRef->fSegmentMask);
2004 builder.appendf("// fIsOval = %s\n", bool_str(fPathRef->fIsOval));
2005 builder.appendf("// fIsRRect = %s\n", bool_str(fPathRef->fIsRRect));
2030 for (auto v = fPathRef->verbsBegin(); v != fPathRef->verbsEnd(); ++v) {
2035 const int nConics = fPathRef->conicWeightsEnd() - fPathRef->conicWeights();
2038 for (auto c = fPathRef->conicWeights(); c != fPathRef->conicWeightsEnd(); ++c) {
2075 bool isFinite = compute_pt_bounds(&bounds, *fPathRef.get());
2080 if (fPathRef->countPoints() <= 1) {
2282 auto verbs = fPathRef->verbsEnd() - 1;
2283 while(verbs > fPathRef->verbsBegin() && *verbs == Verb::kMove_Verb) {
2293 const SkPoint* points = fPathRef->points();
2544 ContourIter iter(*path.fPathRef);
3518 int verbCnt = path.fPathRef->countVerbs();
3520 uint8_t verb = insertClose ? (uint8_t) SkPath::kClose_Verb : path.fPathRef->atVerb(*currVerb);
3645 const SkPoint* pts = path.fPathRef->points();
3853 return path.fPathRef->genIDChangeListenerCount();
3861 const SkPoint* pts = path.fPathRef->points();
3862 const int count = path.fPathRef->countPoints();