Lines Matching refs:MemBlock
57 : fHeadBlock(MemBlock::Alloc(LengthOf(initialSizeInBytes), nullptr)),
63 MemBlock::Free(fHeadBlock);
114 struct MemBlock : SkNoncopyable {
117 static MemBlock* Alloc(int length, MemBlock* prev) {
118 MemBlock* block = reinterpret_cast<MemBlock*>(
119 sk_malloc_throw(sizeof(TAlign) * (length_of<MemBlock>::kValue + length)));
132 static void Free(MemBlock* block) {
138 MemBlock* next = block->fNext;
145 return reinterpret_cast<TAlign*>(this)[length_of<MemBlock>::kValue + i];
150 MemBlock* fNext;
151 MemBlock* fPrev;
153 MemBlock* const fHeadBlock;
154 MemBlock* fTailBlock;
214 fTailBlock = MemBlock::Alloc(SkTMax(2 * fTailBlock->fLength, totalLength), fTailBlock);
279 MemBlock* fBlock;
328 MemBlock* fBlock;
344 MemBlock::Free(fTailBlock->fNext);
346 MemBlock::Free(fTailBlock->fNext->fNext);
350 for (MemBlock* block = fHeadBlock; block; block = block->fNext) {