Home | History | Annotate | Download | only in core

Lines Matching refs:block

30      *  The caller can specify an initial block of storage, which the caller manages.
65 Block* block = fTail;
66 if (NULL == block || block->available() < size) {
67 block = this->doReserve(size);
70 return block->alloc(size);
154 // if we could query how much is avail in the current block, we might
156 // in the current block
208 struct Block {
209 Block* fNext;
239 static Block* Create(size_t size) {
241 Block* block = (Block*)sk_malloc_throw(sizeof(Block) + size);
242 block->fNext = NULL;
243 block->fBasePtr = (char*)(block + 1);
244 block->fSizeOfBlock = size;
245 block->fAllocatedSoFar = 0;
246 return block;
249 Block* initFromStorage(void* storage, size_t size) {
252 Block* block = this;
253 block->fNext = NULL;
254 block->fBasePtr = (char*)storage;
255 block->fSizeOfBlock = size;
256 block->fAllocatedSoFar = 0;
257 return block;
262 MIN_BLOCKSIZE = sizeof(SkWriter32::Block) + sizeof(intptr_t)
265 Block fExternalBlock;
266 Block* fHead;
267 Block* fTail;
277 Block* newBlock(size_t bytes);
280 Block* doReserve(size_t bytes);