Searched refs:preallocSize (Results 1 – 3 of 3) sorted by relevance
20 GrMemoryPool::GrMemoryPool(size_t preallocSize, size_t minAllocSize) { in GrMemoryPool() argument25 preallocSize = SkTMax<size_t>(GrSizeAlignUp(preallocSize, kAlignment), minAllocSize); in GrMemoryPool()30 fHead = CreateBlock(preallocSize); in GrMemoryPool()
34 GrMemoryPool(size_t preallocSize, size_t minAllocSize);61 size_t preallocSize() const { return fHead->fSize; } in preallocSize() function
49 static void SetAllocator(size_t preallocSize, size_t minAllocSize) { in SetAllocator() argument50 GrMemoryPool* pool = new GrMemoryPool(preallocSize, minAllocSize); in SetAllocator()264 REPORTER_ASSERT(reporter, pool.preallocSize() == kSmallestMinAllocSize); in DEF_TEST()271 REPORTER_ASSERT(reporter, pool.preallocSize() == kMinAllocSize); in DEF_TEST()287 REPORTER_ASSERT(reporter, pool.preallocSize() == kPreallocSize); in DEF_TEST()