Lines Matching refs:MemBlock
58 : fHeadBlock(MemBlock::Alloc(LengthOf(initialSizeInBytes), nullptr)), in GrTRecorder()
64 MemBlock::Free(fHeadBlock); in ~GrTRecorder()
115 struct MemBlock : SkNoncopyable { struct
118 static MemBlock* Alloc(int length, MemBlock* prev) { in Alloc() argument
119 MemBlock* block = reinterpret_cast<MemBlock*>( in Alloc()
120 sk_malloc_throw(sizeof(TAlign) * (length_of<MemBlock>::kValue + length))); in Alloc()
133 static void Free(MemBlock* block) { in Free() argument
139 MemBlock* next = block->fNext; in Free()
146 return reinterpret_cast<TAlign*>(this)[length_of<MemBlock>::kValue + i];
151 MemBlock* fNext; argument
152 MemBlock* fPrev; argument
154 MemBlock* const fHeadBlock;
155 MemBlock* fTailBlock;
215 fTailBlock = MemBlock::Alloc(SkTMax(2 * fTailBlock->fLength, totalLength), fTailBlock); in alloc_back()
280 MemBlock* fBlock;
329 MemBlock* fBlock;
345 MemBlock::Free(fTailBlock->fNext); in reset()
347 MemBlock::Free(fTailBlock->fNext->fNext); in reset()
351 for (MemBlock* block = fHeadBlock; block; block = block->fNext) { in reset()