Home
last modified time | relevance | path

Searched refs:mBlocksPerSlab (Results 1 – 2 of 2) sorted by relevance

/third_party/skia/third_party/externals/dawn/src/common/
DSlabAllocator.cpp67 mBlocksPerSlab(blocksPerSlab), in SlabAllocatorImpl()
70 static_cast<size_t>(mSlabBlocksOffset) + mBlocksPerSlab * mBlockStride + in SlabAllocatorImpl()
82 mBlocksPerSlab(rhs.mBlocksPerSlab), in SlabAllocatorImpl()
110 IndexLinkNode* lastNode = OffsetFrom(firstNode, mBlocksPerSlab - 1); in IsNodeInSlab()
111 return node >= firstNode && node <= lastNode && node->index < mBlocksPerSlab; in IsNodeInSlab()
142 ASSERT(slab->blocksInUse < mBlocksPerSlab); in PopFront()
184 if (slab->blocksInUse == mBlocksPerSlab) { in Allocate()
195 ASSERT(node->index < mBlocksPerSlab); in Deallocate()
200 bool slabWasFull = slab->blocksInUse == mBlocksPerSlab; in Deallocate()
238 for (uint32_t i = 0; i < mBlocksPerSlab; ++i) { in GetNewSlab()
[all …]
DSlabAllocator.h145 const Index mBlocksPerSlab; // The total number of blocks in a slab. variable