Searched refs:preallocSize (Results 1 – 9 of 9) sorted by relevance
/external/skia/src/gpu/ |
D | GrMemoryPool.h | 50 static std::unique_ptr<GrMemoryPool> Make(size_t preallocSize, size_t minAllocSize); 84 size_t size() const { return fAllocator.totalSize() - fAllocator.preallocSize(); } in size() 89 size_t preallocSize() const { in preallocSize() function 91 return offsetof(GrMemoryPool, fAllocator) + fAllocator.preallocSize(); in preallocSize() 119 GrMemoryPool(size_t preallocSize, size_t minAllocSize);
|
D | GrMemoryPool.cpp | 22 std::unique_ptr<GrMemoryPool> GrMemoryPool::Make(size_t preallocSize, size_t minAllocSize) { in Make() argument 25 preallocSize = SkTPin(preallocSize, kMinAllocationSize, in Make() 29 void* mem = operator new(preallocSize); in Make() 30 return std::unique_ptr<GrMemoryPool>(new (mem) GrMemoryPool(preallocSize, minAllocSize)); in Make() 33 GrMemoryPool::GrMemoryPool(size_t preallocSize, size_t minAllocSize) in GrMemoryPool() argument 35 preallocSize - offsetof(GrMemoryPool, fAllocator) - sizeof(GrBlockAllocator)) { in GrMemoryPool()
|
D | GrBlockAllocator.cpp | 57 SkASSERT(size >= this->preallocSize()); in totalSize()
|
D | GrBlockAllocator.h | 222 size_t preallocSize() const { in preallocSize() function
|
/external/skqp/src/gpu/ |
D | GrMemoryPool.h | 40 GrMemoryPool(size_t preallocSize, size_t minAllocSize); 67 size_t preallocSize() const { return fHead->fSize; } in preallocSize() function 133 GrOpMemoryPool(size_t preallocSize, size_t minAllocSize) in GrOpMemoryPool() argument 134 : fMemoryPool(preallocSize, minAllocSize) { in GrOpMemoryPool()
|
D | GrMemoryPool.cpp | 30 GrMemoryPool::GrMemoryPool(size_t preallocSize, size_t minAllocSize) { in GrMemoryPool() argument 35 preallocSize = SkTMax<size_t>(GrSizeAlignUp(preallocSize, kAlignment), minAllocSize); in GrMemoryPool() 40 fHead = CreateBlock(preallocSize); in GrMemoryPool()
|
/external/skqp/tests/ |
D | GrMemoryPoolTest.cpp | 47 static void SetAllocator(size_t preallocSize, size_t minAllocSize) { in SetAllocator() argument 48 GrMemoryPool* pool = new GrMemoryPool(preallocSize, minAllocSize); in SetAllocator() 262 REPORTER_ASSERT(reporter, pool.preallocSize() == kSmallestMinAllocSize); in DEF_TEST() 269 REPORTER_ASSERT(reporter, pool.preallocSize() == kMinAllocSize); in DEF_TEST() 285 REPORTER_ASSERT(reporter, pool.preallocSize() == kPreallocSize); in DEF_TEST()
|
/external/skia/tests/ |
D | GrMemoryPoolTest.cpp | 47 static void SetAllocator(size_t preallocSize, size_t minAllocSize) { in SetAllocator() argument 48 gPool = GrMemoryPool::Make(preallocSize, minAllocSize); in SetAllocator() 265 REPORTER_ASSERT(reporter, pool->preallocSize() == kSmallestMinAllocSize); in DEF_TEST() 281 REPORTER_ASSERT(reporter, pool->preallocSize() == kPreallocSize); in DEF_TEST()
|
D | GrBlockAllocatorTest.cpp | 56 pool->template allocate<4>(pool->preallocSize() / 2); in add_block() 72 REPORTER_ASSERT(r, stack.preallocSize() == sizeof(GrBlockAllocator)); in DEF_TEST() 79 REPORTER_ASSERT(r, placement->preallocSize() == 1024); in DEF_TEST() 87 REPORTER_ASSERT(r, inlined->preallocSize() == 2048); in DEF_TEST() 142 REPORTER_ASSERT(r, total_size(pool) == pool->preallocSize()); in DEF_TEST() 155 REPORTER_ASSERT(r, total_size(pool) > pool->preallocSize()); in DEF_TEST() 333 REPORTER_ASSERT(r, pool->preallocSize() == pool->totalSize()); in DEF_TEST() 388 REPORTER_ASSERT(r, total_size(pool) == pool->preallocSize()); in DEF_TEST() 524 size_t theftSize = bSize - poolB->preallocSize(); in DEF_TEST() 530 REPORTER_ASSERT(r, poolB->preallocSize() == poolB->totalSize()); in DEF_TEST()
|