Lines Matching refs:MemBlock
58 : fHeadBlock(MemBlock::Alloc(LengthOf(initialSizeInBytes), NULL)), 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;
216 fTailBlock = MemBlock::Alloc(SkTMax(2 * fTailBlock->fLength, totalLength), fTailBlock); in alloc_back()
282 MemBlock* fBlock;
331 MemBlock* fBlock;
347 MemBlock::Free(fTailBlock->fNext); in reset()
349 MemBlock::Free(fTailBlock->fNext->fNext); in reset()
353 for (MemBlock* block = fHeadBlock; block; block = block->fNext) { in reset()