Lines Matching refs:ref

63             src.ref();  in CreateTransformedCopy()
126 SkPathRef* ref = new SkPathRef; in CreateFromBuffer() local
130 delete ref; in CreateFromBuffer()
134 ref->fIsFinite = (packed >> kIsFinite_SerializationShift) & 1; in CreateFromBuffer()
141 if (!buffer->readU32(&(ref->fGenerationID)) || in CreateFromBuffer()
152 delete ref; in CreateFromBuffer()
156 ref->resetToSize(verbCount, pointCount, conicCount); in CreateFromBuffer()
157 SkASSERT(verbCount == ref->countVerbs()); in CreateFromBuffer()
158 SkASSERT(pointCount == ref->countPoints()); in CreateFromBuffer()
159 SkASSERT(conicCount == ref->fConicWeights.count()); in CreateFromBuffer()
161 if (!buffer->read(ref->verbsMemWritable(), verbCount * sizeof(uint8_t)) || in CreateFromBuffer()
162 !buffer->read(ref->fPoints, pointCount * sizeof(SkPoint)) || in CreateFromBuffer()
163 !buffer->read(ref->fConicWeights.begin(), conicCount * sizeof(SkScalar)) || in CreateFromBuffer()
164 !buffer->read(&ref->fBounds, sizeof(SkRect))) { in CreateFromBuffer()
165 delete ref; in CreateFromBuffer()
168 ref->fBoundsIsDirty = false; in CreateFromBuffer()
171 ref->fSegmentMask = segmentMask; in CreateFromBuffer()
172 ref->fIsOval = isOval; in CreateFromBuffer()
173 ref->fIsRRect = isRRect; in CreateFromBuffer()
174 return ref; in CreateFromBuffer()
199 bool SkPathRef::operator== (const SkPathRef& ref) const { in operator ==()
201 SkDEBUGCODE(ref.validate();) in operator ==()
206 if (fSegmentMask != ref.fSegmentMask) { in operator ==()
210 bool genIDMatch = fGenerationID && fGenerationID == ref.fGenerationID; in operator ==()
216 if (fPointCnt != ref.fPointCnt || in operator ==()
217 fVerbCnt != ref.fVerbCnt) { in operator ==()
221 if (0 == ref.fVerbCnt) { in operator ==()
222 SkASSERT(0 == ref.fPointCnt); in operator ==()
225 SkASSERT(this->verbsMemBegin() && ref.verbsMemBegin()); in operator ==()
227 ref.verbsMemBegin(), in operator ==()
228 ref.fVerbCnt * sizeof(uint8_t))) { in operator ==()
232 SkASSERT(this->points() && ref.points()); in operator ==()
234 ref.points(), in operator ==()
235 ref.fPointCnt * sizeof(SkPoint))) { in operator ==()
239 if (fConicWeights != ref.fConicWeights) { in operator ==()
282 void SkPathRef::copy(const SkPathRef& ref, in copy() argument
286 this->resetToSize(ref.fVerbCnt, ref.fPointCnt, ref.fConicWeights.count(), in copy()
288 sk_careful_memcpy(this->verbsMemWritable(), ref.verbsMemBegin(), ref.fVerbCnt*sizeof(uint8_t)); in copy()
289 sk_careful_memcpy(this->fPoints, ref.fPoints, ref.fPointCnt * sizeof(SkPoint)); in copy()
290 fConicWeights = ref.fConicWeights; in copy()
291 fBoundsIsDirty = ref.fBoundsIsDirty; in copy()
293 fBounds = ref.fBounds; in copy()
294 fIsFinite = ref.fIsFinite; in copy()
296 fSegmentMask = ref.fSegmentMask; in copy()
297 fIsOval = ref.fIsOval; in copy()
298 fIsRRect = ref.fIsRRect; in copy()