Lines Matching refs:pathRef
14 SkPathRef::Editor::Editor(SkAutoTUnref<SkPathRef>* pathRef,
18 if ((*pathRef)->unique()) {
19 (*pathRef)->incReserve(incReserveVerbs, incReservePoints);
22 copy->copy(**pathRef, incReserveVerbs, incReservePoints);
23 pathRef->reset(copy);
25 fPathRef = *pathRef;
152 void SkPathRef::Rewind(SkAutoTUnref<SkPathRef>* pathRef) {
153 if ((*pathRef)->unique()) {
154 SkDEBUGCODE((*pathRef)->validate();)
155 (*pathRef)->fBoundsIsDirty = true; // this also invalidates fIsFinite
156 (*pathRef)->fVerbCnt = 0;
157 (*pathRef)->fPointCnt = 0;
158 (*pathRef)->fFreeSpace = (*pathRef)->currSize();
159 (*pathRef)->fGenerationID = 0;
160 (*pathRef)->fConicWeights.rewind();
161 (*pathRef)->fSegmentMask = 0;
162 (*pathRef)->fIsOval = false;
163 SkDEBUGCODE((*pathRef)->validate();)
165 int oldVCnt = (*pathRef)->countVerbs();
166 int oldPCnt = (*pathRef)->countPoints();
167 pathRef->reset(SkNEW(SkPathRef));
168 (*pathRef)->resetToSize(0, 0, 0, oldVCnt, oldPCnt);