Lines Matching defs:block
72 // Update live count within the block
111 SkBlockAllocator::Block* block = fAllocator.owningBlock<kAlignment>(header, header->fStart);
114 // (p - block) matches the original alignedOffset value from SkBlockAllocator::allocate().
115 intptr_t alignedOffset = (intptr_t)p - (intptr_t)block;
116 SkASSERT(p == block->ptr(alignedOffset));
118 // Scrub the block contents to prevent use-after-free errors.
122 int alive = block->metadata();
124 // This was last allocation in the block, so remove it
125 fAllocator.releaseBlock(block);
128 block->setMetadata(alive - 1);
129 block->release(header->fStart, header->fEnd);