Home
last modified time | relevance | path

Searched refs:fPathRef (Results 1 – 17 of 17) sorted by relevance

/third_party/flutter/skia/src/core/
DSkPathPriv.h69 auto verbs = path.fPathRef->verbs(); in IsClosedSingleContour()
91 path.fPathRef->addGenIDChangeListener(std::move(listener)); in AddGenIDChangeListener()
124 Verbs(const SkPath& path) : fPathRef(path.fPathRef.get()) {} in Verbs()
131 Iter begin() { return Iter{fPathRef->verbs() - 1}; } in begin()
132 Iter end() { return Iter{fPathRef->verbs() - fPathRef->countVerbs() - 1}; } in end()
136 SkPathRef* fPathRef; member
144 return path.fPathRef->verbsMemBegin(); in VerbData()
149 return path.fPathRef->points(); in PointData()
154 return path.fPathRef->countWeights(); in ConicWeightCnt()
159 return path.fPathRef->conicWeights(); in ConicWeightData()
[all …]
DSkPath.cpp158 : fPathRef(SkPathRef::CreateEmpty()) { in SkPath()
175 : fPathRef(SkRef(that.fPathRef.get())) { in SkPath()
188 fPathRef.reset(SkRef(that.fPathRef.get())); in operator =()
210 (a.fFillType == b.fFillType && *a.fPathRef.get() == *b.fPathRef.get()); in operator ==()
215 fPathRef.swap(that.fPathRef); in swap()
238 int count = fPathRef->countVerbs(); in isInterpolatable()
239 if (count != compare.fPathRef->countVerbs()) { in isInterpolatable()
245 if (memcmp(fPathRef->verbsMemBegin(), compare.fPathRef->verbsMemBegin(), in isInterpolatable()
249 return !fPathRef->countWeights() || in isInterpolatable()
250 !SkToBool(memcmp(fPathRef->conicWeights(), compare.fPathRef->conicWeights(), in isInterpolatable()
[all …]
DSkPath_serial.cpp60 if (fPathRef->isOval(&oval, &isCCW, &start)) { in writeToMemoryAsRRect()
64 } else if (!fPathRef->isRRect(&rrect, &isCCW, &start)) { in writeToMemoryAsRRect()
100 int32_t pts = fPathRef->countPoints(); in writeToMemory()
101 int32_t cnx = fPathRef->countWeights(); in writeToMemory()
102 int32_t vbs = fPathRef->countVerbs(); in writeToMemory()
122 buffer.write(fPathRef->points(), pts * sizeof(SkPoint)); in writeToMemory()
123 buffer.write(fPathRef->conicWeights(), cnx * sizeof(SkScalar)); in writeToMemory()
124 buffer.write(fPathRef->verbsMemBegin(), vbs * sizeof(uint8_t)); in writeToMemory()
322 fPathRef.reset(pathRef); in readFromMemory_LE3()
DSkPathRef.cpp43 fPathRef = pathRef->get(); in Editor()
44 fPathRef->callGenIDChangeListeners(); in Editor()
45 fPathRef->fGenerationID = 0; in Editor()
46 fPathRef->fBoundsIsDirty = true; in Editor()
47 SkDEBUGCODE(fPathRef->fEditorsAttached++;) in Editor()
56 if (fPathRef->fFreeSpace <= kMinFreeSpaceForShrink) { in shrinkToFit()
60 if (fPathRef->unique()) { in shrinkToFit()
61 int pointCount = fPathRef->fPointCnt; in shrinkToFit()
62 int verbCount = fPathRef->fVerbCnt; in shrinkToFit()
73 sk_careful_memcpy(newAlloc, fPathRef->fPoints, ptsSize); in shrinkToFit()
[all …]
/third_party/skia/src/core/
DSkPathPriv.h60 auto verbs = path.fPathRef->verbsBegin(); in IsClosedSingleContour()
85 auto verbs = path.fPathRef->verbsBegin(); in LeadingMoveToCount()
95 path.fPathRef->addGenIDChangeListener(std::move(listener)); in AddGenIDChangeListener()
132 Verbs(const SkPath& path) : fPathRef(path.fPathRef.get()) {} in Verbs()
139 Iter begin() { return Iter{fPathRef->verbsBegin()}; } in begin()
140 Iter end() { return Iter{fPathRef->verbsEnd()}; } in end()
144 SkPathRef* fPathRef; member
165 : Iterate(path.fPathRef->verbsBegin(), in Iterate()
167 (!path.isFinite()) ? path.fPathRef->verbsBegin() in Iterate()
168 : path.fPathRef->verbsEnd(), in Iterate()
[all …]
DSkPath.cpp147 : fPathRef(SkPathRef::CreateEmpty()) { in SkPath()
154 : fPathRef(std::move(pr)) in SkPath()
174 : fPathRef(SkRef(that.fPathRef.get())) { in SkPath()
187 fPathRef.reset(SkRef(that.fPathRef.get())); in operator =()
209 (a.fFillType == b.fFillType && *a.fPathRef == *b.fPathRef); in operator ==()
214 fPathRef.swap(that.fPathRef); in swap()
238 return fPathRef->fPoints.count() == compare.fPathRef->fPoints.count() && in isInterpolatable()
239 fPathRef->fVerbs == compare.fPathRef->fVerbs && in isInterpolatable()
240 fPathRef->fConicWeights == compare.fPathRef->fConicWeights; in isInterpolatable()
244 int pointCount = fPathRef->countPoints(); in interpolate()
[all …]
DSkPath_serial.cpp63 if (fPathRef->isOval(&oval, &isCCW, &start)) { in writeToMemoryAsRRect()
67 } else if (!fPathRef->isRRect(&rrect, &isCCW, &start)) { in writeToMemoryAsRRect()
103 int32_t pts = fPathRef->countPoints(); in writeToMemory()
104 int32_t cnx = fPathRef->countWeights(); in writeToMemory()
105 int32_t vbs = fPathRef->countVerbs(); in writeToMemory()
125 buffer.write(fPathRef->points(), pts * sizeof(SkPoint)); in writeToMemory()
126 buffer.write(fPathRef->conicWeights(), cnx * sizeof(SkScalar)); in writeToMemory()
127 buffer.write(fPathRef->verbsBegin(), vbs * sizeof(uint8_t)); in writeToMemory()
DSkPathRef.cpp33 fPathRef = pathRef->get(); in Editor()
34 fPathRef->callGenIDChangeListeners(); in Editor()
35 fPathRef->fGenerationID = 0; in Editor()
36 fPathRef->fBoundsIsDirty = true; in Editor()
37 SkDEBUGCODE(fPathRef->fEditorsAttached++;) in Editor()
47 if (!fPathRef->unique()) { in shrinkToFit()
49 pr->copy(*fPathRef, 0, 0); in shrinkToFit()
50 fPathRef.reset(pr); in shrinkToFit()
52 fPathRef->fPoints.shrinkToFit(); in shrinkToFit()
53 fPathRef->fVerbs.shrinkToFit(); in shrinkToFit()
[all …]
DSkPathBuilder.cpp217 const uint8_t* start = path.fPathRef->verbsBegin(); in make()
218 const uint8_t* stop = path.fPathRef->verbsEnd(); in make()
818 const uint8_t* verbsBegin = src.fPathRef->verbsBegin(); in privateReverseAddPath()
819 const uint8_t* verbs = src.fPathRef->verbsEnd(); in privateReverseAddPath()
820 const SkPoint* pts = src.fPathRef->pointsEnd(); in privateReverseAddPath()
821 const SkScalar* conicWeights = src.fPathRef->conicWeightsEnd(); in privateReverseAddPath()
/third_party/skia/include/private/
DSkPathRef.h93 ~Editor() { SkDEBUGCODE(fPathRef->fEditorsAttached--;) } in ~Editor()
98 SkPoint* writablePoints() { return fPathRef->getWritablePoints(); } in writablePoints()
99 const SkPoint* points() const { return fPathRef->points(); } in points()
104 SkPoint* atPoint(int i) { return fPathRef->getWritablePoints() + i; } in atPoint()
105 const SkPoint* atPoint(int i) const { return &fPathRef->fPoints[i]; } in atPoint()
113 SkDEBUGCODE(fPathRef->validate();)
114 return fPathRef->growForVerb(verb, weight);
127 return fPathRef->growForRepeatedVerb(verb, numVbs, weights);
138 return fPathRef->growForVerbsInPath(path); in growForVerbsInPath()
146 fPathRef->resetToSize(newVerbCnt, newPointCnt, newConicCount); in resetToSize()
[all …]
/third_party/flutter/skia/include/private/
DSkPathRef.h49 ~Editor() { SkDEBUGCODE(fPathRef->fEditorsAttached--;) } in ~Editor()
54 SkPoint* points() { return fPathRef->getPoints(); } in points()
55 const SkPoint* points() const { return fPathRef->points(); } in points()
61 SkASSERT((unsigned) i < (unsigned) fPathRef->fPointCnt); in atPoint()
65 SkASSERT((unsigned) i < (unsigned) fPathRef->fPointCnt); in atPoint()
75 SkDEBUGCODE(fPathRef->validate();)
76 return fPathRef->growForVerb(verb, weight);
89 return fPathRef->growForRepeatedVerb(verb, numVbs, weights);
97 fPathRef->resetToSize(newVerbCnt, newPointCnt, newConicCount); in resetToSize()
103 SkPathRef* pathRef() { return fPathRef; } in pathRef()
[all …]
/third_party/flutter/skia/include/core/
DSkPath.h315 return 0 == fPathRef->countVerbs(); in isEmpty()
334 return fPathRef->isFinite(); in isFinite()
491 return fPathRef->getBounds(); in getBounds()
1382 uint32_t getSegmentMasks() const { return fPathRef->getSegmentMasks(); } in getSegmentMasks()
1529 fRawIter.setPathRef(*path.fPathRef.get()); in setPath()
1664 bool isValid() const { return this->isValidImpl() && fPathRef->isValid(); } in isValid()
1667 sk_sp<SkPathRef> fPathRef;
1718 SkDEBUGCODE(void validateRef() const { fPathRef->validate(); } )
1731 return fPathRef->hasComputedBounds(); in hasComputedBounds()
1737 SkPathRef::Editor ed(&fPathRef); in setBounds()
/third_party/skia/include/core/
DSkPath.h290 return 0 == fPathRef->countVerbs(); in isEmpty()
311 return fPathRef->isFinite(); in isFinite()
486 return fPathRef->getBounds(); in getBounds()
1412 uint32_t getSegmentMasks() const { return fPathRef->getSegmentMasks(); } in getSegmentMasks()
1762 bool isValid() const { return this->isValidImpl() && fPathRef->isValid(); } in isValid()
1768 sk_sp<SkPathRef> fPathRef; variable
1818 SkDEBUGCODE(void validateRef() const { fPathRef->validate(); } )
1828 return fPathRef->hasComputedBounds(); in hasComputedBounds()
1834 SkPathRef::Editor ed(&fPathRef); in setBounds()
/third_party/skia/tests/
DRRectInPathTest.cpp89 path->fPathRef->setIsRRect(true, dir == SkPathDirection::kCCW, start); in ForceIsRRect_Private()
DPathTest.cpp4394 return PathRefTest_Private::GetFreeSpace(*path.fPathRef); in GetFreeSpace()
/third_party/flutter/skia/tests/
DRRectInPathTest.cpp89 path->fPathRef->setIsRRect(true, dir == SkPath::kCCW_Direction, start); in ForceIsRRect_Private()
DPathTest.cpp4334 return PathRefTest_Private::GetFreeSpace(*path.fPathRef); in GetFreeSpace()