Lines Matching defs: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;
166 void SkPathRef::Rewind(SkAutoTUnref<SkPathRef>* pathRef) {
167 if ((*pathRef)->unique()) {
168 SkDEBUGCODE((*pathRef)->validate();)
169 (*pathRef)->fBoundsIsDirty = true; // this also invalidates fIsFinite
170 (*pathRef)->fVerbCnt = 0;
171 (*pathRef)->fPointCnt = 0;
172 (*pathRef)->fFreeSpace = (*pathRef)->currSize();
173 (*pathRef)->fGenerationID = 0;
174 (*pathRef)->fConicWeights.rewind();
175 (*pathRef)->fSegmentMask = 0;
176 (*pathRef)->fIsOval = false;
177 SkDEBUGCODE((*pathRef)->validate();)
179 int oldVCnt = (*pathRef)->countVerbs();
180 int oldPCnt = (*pathRef)->countPoints();
181 pathRef->reset(SkNEW(SkPathRef));
182 (*pathRef)->resetToSize(0, 0, 0, oldVCnt, oldPCnt);