Lines Matching refs:fHead
16 : fTail(&fHead) in GrBlockAllocator()
26 , fHead(/*prev=*/nullptr, additionalPreallocBytes + BaseHeadBlockSize()) { in GrBlockAllocator()
53 size_t size = offsetof(GrBlockAllocator, fHead) + this->scratchBlockSize(); in totalSize()
97 if (block == &fHead) { in releaseBlock()
117 SkASSERT(block != fHead.fPrev); // shouldn't already be the scratch block in releaseBlock()
118 if (fHead.fPrev) { in releaseBlock()
119 delete fHead.fPrev; in releaseBlock()
122 fHead.fPrev = block; in releaseBlock()
151 Block* toSteal = other->fHead.fNext; in stealHeapBlocks()
155 SkASSERT(other->fTail != &other->fHead); in stealHeapBlocks()
160 other->fTail = &other->fHead; in stealHeapBlocks()
161 other->fHead.fNext = nullptr; in stealHeapBlocks()
167 if (b == &fHead) { in reset()
182 SkASSERT(fTail == &fHead && fHead.fNext == nullptr && fHead.fPrev == nullptr && in reset()
183 fHead.metadata() == 0 && fHead.fCursor == kDataStart); in reset()
191 if (fHead.fPrev) { in resetScratchSpace()
192 delete fHead.fPrev; in resetScratchSpace()
193 fHead.fPrev = nullptr; in resetScratchSpace()
216 SkASSERT(fHead.fPrev->isScratch()); in addBlock()
217 allocSize = fHead.fPrev->fSize; in addBlock()
218 mem = fHead.fPrev; in addBlock()
219 fHead.fPrev = nullptr; in addBlock()
269 if (block == &fHead) { in validate()
272 SkASSERT(!prev && (!fHead.fPrev || fHead.fPrev->isScratch())); in validate()
288 SkASSERT(blocks[0] == &fHead); in validate()