Searched refs:preallocSize (Results 1 – 9 of 9) sorted by relevance
/third_party/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 | 21 std::unique_ptr<GrMemoryPool> GrMemoryPool::Make(size_t preallocSize, size_t minAllocSize) { in Make() argument 24 preallocSize = SkTPin(preallocSize, kMinAllocationSize, in Make() 28 void* mem = operator new(preallocSize); in Make() 29 return std::unique_ptr<GrMemoryPool>(new (mem) GrMemoryPool(preallocSize, minAllocSize)); in Make() 32 GrMemoryPool::GrMemoryPool(size_t preallocSize, size_t minAllocSize) in GrMemoryPool() argument 34 preallocSize - offsetof(GrMemoryPool, fAllocator) - sizeof(SkBlockAllocator)) { in GrMemoryPool()
|
/third_party/flutter/skia/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()
|
/third_party/flutter/skia/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()
|
/third_party/skia/tests/ |
D | SkBlockAllocatorTest.cpp | 64 pool->template allocate<4>(pool->preallocSize() / 2); in add_block() 80 REPORTER_ASSERT(r, stack.preallocSize() == sizeof(SkBlockAllocator)); in DEF_TEST() 87 REPORTER_ASSERT(r, placement->preallocSize() == 1024); in DEF_TEST() 96 REPORTER_ASSERT(r, inlined->preallocSize() == 2048); in DEF_TEST() 151 REPORTER_ASSERT(r, total_size(pool) == pool->preallocSize()); in DEF_TEST() 164 REPORTER_ASSERT(r, total_size(pool) > pool->preallocSize()); in DEF_TEST() 343 REPORTER_ASSERT(r, pool->preallocSize() == pool->totalSize()); in DEF_TEST() 398 REPORTER_ASSERT(r, total_size(pool) == pool->preallocSize()); in DEF_TEST() 534 size_t theftSize = bSize - poolB->preallocSize(); in DEF_TEST() 540 REPORTER_ASSERT(r, poolB->preallocSize() == poolB->totalSize()); in DEF_TEST()
|
D | GrMemoryPoolTest.cpp | 47 static void SetAllocator(size_t preallocSize, size_t minAllocSize) { in SetAllocator() argument 48 gPool = GrMemoryPool::Make(preallocSize, minAllocSize); in SetAllocator() 263 REPORTER_ASSERT(reporter, pool->preallocSize() == kSmallestMinAllocSize); in DEF_TEST() 279 REPORTER_ASSERT(reporter, pool->preallocSize() == kPreallocSize); in DEF_TEST()
|
/third_party/skia/src/core/ |
D | SkBlockAllocator.cpp | 57 SkASSERT(size >= this->preallocSize()); in totalSize()
|
D | SkBlockAllocator.h | 229 size_t preallocSize() const { in preallocSize() function
|