Lines Matching refs:fRunHead
74 fRunHead = SkRegion_gEmptyRunHeadPtr; in SkRegion()
78 … fRunHead = SkRegion_gEmptyRunHeadPtr; // just need a value that won't trigger sk_free(fRunHead) in SkRegion()
83 … fRunHead = SkRegion_gEmptyRunHeadPtr; // just need a value that won't trigger sk_free(fRunHead) in SkRegion()
93 SkASSERT(fRunHead->fRefCnt >= 1); in freeRuns()
94 if (sk_atomic_dec(&fRunHead->fRefCnt) == 1) { in freeRuns()
98 sk_free(fRunHead); in freeRuns()
104 fRunHead = RunHead::Alloc(count, ySpanCount, intervalCount); in allocateRuns()
108 fRunHead = RunHead::Alloc(count); in allocateRuns()
112 fRunHead = RunHead::Alloc(head.fRunCount, in allocateRuns()
124 SkTSwap<RunHead*>(fRunHead, other.fRunHead); in swap()
133 return fRunHead->getIntervalCount(); in computeRegionComplexity()
139 fRunHead = SkRegion_gEmptyRunHeadPtr; in setEmpty()
150 fRunHead = SkRegion_gRectRunHeadPtr; in setRect()
163 fRunHead = src.fRunHead; in setRegion()
165 sk_atomic_inc(&fRunHead->fRefCnt); in setRegion()
168 return fRunHead != SkRegion_gEmptyRunHeadPtr; in setRegion()
221 maxT = fRunHead->getIntervalCount() * 2; in count_runtype_values()
284 if (!this->isComplex() || fRunHead->fRunCount != count) { in setRuns()
291 fRunHead = fRunHead->ensureWritable(); in setRuns()
292 memcpy(fRunHead->writable_runs(), runs, count * sizeof(RunType)); in setRuns()
293 fRunHead->computeRunBounds(&fBounds); in setRuns()
322 const RunType* runs = fRunHead->findScanline(y); in contains()
380 const RunType* scanline = fRunHead->findScanline(r.fTop); in contains()
426 runs = fRunHead->readonly_runs(); in getRuns()
427 *intervals = fRunHead->getIntervalCount(); in getRuns()
465 const RunType* scanline = fRunHead->findScanline(sect.fTop); in intersects()
517 const SkRegion::RunHead* ah = fRunHead; in operator ==()
518 const SkRegion::RunHead* bh = b.fRunHead; in operator ==()
546 dst->fRunHead = dst->fRunHead->ensureWritable(); in translate()
549 tmp.allocateRuns(*fRunHead); in translate()
556 const RunType* sruns = fRunHead->readonly_runs(); in translate()
557 RunType* druns = dst->fRunHead->writable_runs(); in translate()
579 SkASSERT(sruns - fRunHead->readonly_runs() == fRunHead->fRunCount); in translate()
580 SkASSERT(druns - dst->fRunHead->readonly_runs() == dst->fRunHead->fRunCount); in translate()
1104 size += fRunHead->fRunCount * sizeof(RunType); in writeToMemory()
1117 buffer.write32(isRect ? 0 : fRunHead->fRunCount); in writeToMemory()
1121 buffer.write32(fRunHead->getYSpanCount()); in writeToMemory()
1122 buffer.write32(fRunHead->getIntervalCount()); in writeToMemory()
1123 buffer.write(fRunHead->readonly_runs(), in writeToMemory()
1124 fRunHead->fRunCount * sizeof(RunType)); in writeToMemory()
1137 tmp.fRunHead = SkRegion_gRectRunHeadPtr; in readFromMemory()
1142 buffer.read(tmp.fRunHead->writable_runs(), count * sizeof(RunType)); in readFromMemory()
1239 SkASSERT(fRunHead->fRefCnt >= 1); in validate()
1240 SkASSERT(fRunHead->fRunCount > kRectRegionRuns); in validate()
1242 const RunType* run = fRunHead->readonly_runs(); in validate()
1252 SkASSERT(fRunHead->getYSpanCount() == ySpanCount); in validate()
1254 SkASSERT(fRunHead->getIntervalCount() == intervalCount); in validate()
1266 const RunType* runs = fRunHead->readonly_runs(); in dump()
1267 for (int i = 0; i < fRunHead->fRunCount; i++) in dump()
1300 fRuns = rgn.fRunHead->readonly_runs(); in reset()
1408 const SkRegion::RunType* runs = rgn.fRunHead->findScanline(y); in Spanerator()