Lines Matching refs:fRunHead
117 fRunHead = SkRegion_gEmptyRunHeadPtr;
121 fRunHead = SkRegion_gEmptyRunHeadPtr; // just need a value that won't trigger sk_free(fRunHead)
126 fRunHead = SkRegion_gEmptyRunHeadPtr; // just need a value that won't trigger sk_free(fRunHead)
136 SkASSERT(fRunHead->fRefCnt >= 1);
137 if (--fRunHead->fRefCnt == 0) {
138 sk_free(fRunHead);
144 fRunHead = RunHead::Alloc(count, ySpanCount, intervalCount);
148 fRunHead = RunHead::Alloc(count);
152 fRunHead = RunHead::Alloc(head.fRunCount,
165 swap(fRunHead, other.fRunHead);
174 return fRunHead->getIntervalCount();
180 fRunHead = SkRegion_gEmptyRunHeadPtr;
192 fRunHead = SkRegion_gRectRunHeadPtr;
201 fRunHead = src.fRunHead;
203 fRunHead->fRefCnt++;
206 return fRunHead != SkRegion_gEmptyRunHeadPtr;
260 maxT = fRunHead->getIntervalCount() * 2;
323 if (!this->isComplex() || fRunHead->fRunCount != count) {
331 fRunHead = fRunHead->ensureWritable();
332 memcpy(fRunHead->writable_runs(), runs, count * sizeof(RunType));
333 fRunHead->computeRunBounds(&fBounds);
367 const RunType* runs = fRunHead->findScanline(y);
425 const RunType* scanline = fRunHead->findScanline(r.fTop);
471 runs = fRunHead->readonly_runs();
472 *intervals = fRunHead->getIntervalCount();
510 const RunType* scanline = fRunHead->findScanline(sect.fTop);
562 const SkRegion::RunHead* ah = fRunHead;
563 const SkRegion::RunHead* bh = b.fRunHead;
606 dst->fRunHead = dst->fRunHead->ensureWritable();
609 tmp.allocateRuns(*fRunHead);
617 const RunType* sruns = fRunHead->readonly_runs();
618 RunType* druns = dst->fRunHead->writable_runs();
640 SkASSERT(sruns - fRunHead->readonly_runs() == fRunHead->fRunCount);
641 SkASSERT(druns - dst->fRunHead->readonly_runs() == dst->fRunHead->fRunCount);
1150 size += fRunHead->fRunCount * sizeof(RunType);
1163 buffer.write32(isRect ? 0 : fRunHead->fRunCount);
1167 buffer.write32(fRunHead->getYSpanCount());
1168 buffer.write32(fRunHead->getIntervalCount());
1169 buffer.write(fRunHead->readonly_runs(),
1170 fRunHead->fRunCount * sizeof(RunType));
1290 tmp.fRunHead = SkRegion_gRectRunHeadPtr;
1304 SkAssertResult(buffer.read(tmp.fRunHead->writable_runs(), count * sizeof(int32_t)));
1325 return fRunHead && fRunHead->fRefCnt > 0 &&
1326 validate_run(fRunHead->readonly_runs(), fRunHead->fRunCount, fBounds,
1327 fRunHead->getYSpanCount(), fRunHead->getIntervalCount());
1343 desc += split + "\t fRunHead->readonly_runs():";
1344 const RunType* runs = fRunHead->readonly_runs();
1345 for (int i = 0; i < fRunHead->fRunCount; i++) {
1363 const RunType* runs = fRunHead->readonly_runs();
1364 for (int i = 0; i < fRunHead->fRunCount; i++)
1397 fRuns = rgn.fRunHead->readonly_runs();
1505 const SkRegion::RunType* runs = rgn.fRunHead->findScanline(y);
1581 const int32_t* p = rgn.fRunHead->readonly_runs();