• Home
  • Raw
  • Download

Lines Matching refs:ref

120             src.ref();  in CreateTransformedCopy()
227 std::unique_ptr<SkPathRef> ref(new SkPathRef); in CreateFromBuffer() local
234 ref->fIsFinite = (packed >> kIsFinite_SerializationShift) & 1; in CreateFromBuffer()
247 if (!buffer->readU32(&(ref->fGenerationID)) || in CreateFromBuffer()
261 ref->resetToSize(verbCount, pointCount, conicCount); in CreateFromBuffer()
262 SkASSERT(verbCount == ref->countVerbs()); in CreateFromBuffer()
263 SkASSERT(pointCount == ref->countPoints()); in CreateFromBuffer()
264 SkASSERT(conicCount == ref->fConicWeights.count()); in CreateFromBuffer()
266 if (!buffer->read(ref->verbsMemWritable(), verbCount * sizeof(uint8_t)) || in CreateFromBuffer()
267 !buffer->read(ref->fPoints, pointCount * sizeof(SkPoint)) || in CreateFromBuffer()
268 !buffer->read(ref->fConicWeights.begin(), conicCount * sizeof(SkScalar)) || in CreateFromBuffer()
269 !buffer->read(&ref->fBounds, sizeof(SkRect))) { in CreateFromBuffer()
276 if (!deduce_pts_conics(ref->verbsMemBegin(), ref->countVerbs(), &pCount, &cCount) || in CreateFromBuffer()
277 pCount != ref->countPoints() || cCount != ref->fConicWeights.count()) { in CreateFromBuffer()
282 if (ComputePtBounds(&bounds, *ref) != SkToBool(ref->fIsFinite) || bounds != ref->fBounds) { in CreateFromBuffer()
287 ref->fBoundsIsDirty = false; in CreateFromBuffer()
290 ref->fSegmentMask = segmentMask; in CreateFromBuffer()
291 ref->fIsOval = isOval; in CreateFromBuffer()
292 ref->fIsRRect = isRRect; in CreateFromBuffer()
293 ref->fRRectOrOvalIsCCW = rrectOrOvalIsCCW; in CreateFromBuffer()
294 ref->fRRectOrOvalStartIdx = rrectOrOvalStartIdx; in CreateFromBuffer()
295 return ref.release(); in CreateFromBuffer()
320 bool SkPathRef::operator== (const SkPathRef& ref) const { in operator ==()
322 SkDEBUGCODE(ref.validate();) in operator ==()
327 if (fSegmentMask != ref.fSegmentMask) { in operator ==()
331 bool genIDMatch = fGenerationID && fGenerationID == ref.fGenerationID; in operator ==()
337 if (fPointCnt != ref.fPointCnt || in operator ==()
338 fVerbCnt != ref.fVerbCnt) { in operator ==()
342 if (0 == ref.fVerbCnt) { in operator ==()
343 SkASSERT(0 == ref.fPointCnt); in operator ==()
346 SkASSERT(this->verbsMemBegin() && ref.verbsMemBegin()); in operator ==()
348 ref.verbsMemBegin(), in operator ==()
349 ref.fVerbCnt * sizeof(uint8_t))) { in operator ==()
353 SkASSERT(this->points() && ref.points()); in operator ==()
355 ref.points(), in operator ==()
356 ref.fPointCnt * sizeof(SkPoint))) { in operator ==()
360 if (fConicWeights != ref.fConicWeights) { in operator ==()
405 void SkPathRef::copy(const SkPathRef& ref, in copy() argument
409 this->resetToSize(ref.fVerbCnt, ref.fPointCnt, ref.fConicWeights.count(), in copy()
411 sk_careful_memcpy(this->verbsMemWritable(), ref.verbsMemBegin(), ref.fVerbCnt*sizeof(uint8_t)); in copy()
412 sk_careful_memcpy(this->fPoints, ref.fPoints, ref.fPointCnt * sizeof(SkPoint)); in copy()
413 fConicWeights = ref.fConicWeights; in copy()
414 fBoundsIsDirty = ref.fBoundsIsDirty; in copy()
416 fBounds = ref.fBounds; in copy()
417 fIsFinite = ref.fIsFinite; in copy()
419 fSegmentMask = ref.fSegmentMask; in copy()
420 fIsOval = ref.fIsOval; in copy()
421 fIsRRect = ref.fIsRRect; in copy()
422 fRRectOrOvalIsCCW = ref.fRRectOrOvalIsCCW; in copy()
423 fRRectOrOvalStartIdx = ref.fRRectOrOvalStartIdx; in copy()