Lines Matching defs:block

51 // SkBlockAllocator holds on to the largest last-released block to reuse for new allocations,
83 // Tests placement new initialization to increase head block size, option #2
105 // Assumes the previous pointer was in the same block
117 // And block of the returned struct is the current block of the allocator
150 // All of these allocations should be in the head block
154 // Requesting an allocation of avail() should not make a new block
160 // the next allocation will make a new block
166 // Allocating more than avail() makes an another block
269 // start of the block (i.e. unwinds the entire stack, and not just the last cursor position)
286 // If correct, we've rewound all the way back to the start of the block, so a new allocation
296 // kFixed -> kInitSize per block
298 // kLinear -> (block ct + 1) * kInitSize for next block
337 // Reset and confirm that there's only one block, a new allocation matches 'firstAlloc' again,
389 // Since we're back to just the head block, if we add a new block, the growth policy should
396 // Explicitly release the head block and confirm it's reset
403 // Confirm that if we have > 1 block, but release the head block we can still access the
428 // pool should have just the head block, but was reset
445 // pool should have just the head block, but was reset
458 // Total size shouldn't have changed, the released block should become scratch
462 // But a reset definitely deletes any scratch block
466 // Reserving more than what's available adds a scratch block, and current block remains avail.
475 // Allocating more than avail activates the scratch block (so totalSize doesn't change)
481 // When reserving less than what's still available in the current block, no scratch block is
490 // If kIgnoreGrowthPolicy is specified, the new scratch block should not have been updated to
491 // follow the size (which in this case is a fixed 256 bytes per block).
497 // When requesting an allocation larger than the current block and the scratch block, a new
498 // block is added, and the scratch block remains scratch.
506 // should add a new block and scratch size should stay the same.
547 // Redoing the steal now that B is just a head block should be a no-op
610 // Releasing the head block doesn't change the allocator's metadata (even though that's where
627 Block* block = pool->owningBlock<Align, Padding>(userPtr, br.fStart);
628 REPORTER_ASSERT(r, block == br.fBlock);
630 block = pool->owningBlock<Align>(metaPtr, br.fStart);
631 REPORTER_ASSERT(r, block == br.fBlock);
633 block = reinterpret_cast<Block*>(reinterpret_cast<uintptr_t>(userPtr) - br.fAlignedOffset);
634 REPORTER_ASSERT(r, block == br.fBlock);