Lines Matching refs:GrMemoryPool
11 #include "src/gpu/GrMemoryPool.h"
17 // sizeof is a multiple of GrMemoryPool::kAlignment for 4, 8, or 16 byte alignment
18 struct alignas(GrMemoryPool::kAlignment) Aligned {
22 static_assert(sizeof(Aligned) % GrMemoryPool::kAlignment == 0);
24 // sizeof is not a multiple of GrMemoryPool::kAlignment (will not be a multiple of max_align_t
30 static_assert(sizeof(Unaligned) % GrMemoryPool::kAlignment != 0);
33 static_assert(SkAlignTo(sizeof(Unaligned), GrMemoryPool::kAlignment) == sizeof(Aligned));
37 typedef void (*RunBenchProc)(GrMemoryPool*, int);
44 static void run_stack(GrMemoryPool* pool, int loops) {
68 static void run_queue(GrMemoryPool* pool, int loops) {
92 static void run_pushpop(GrMemoryPool* pool, int loops) {
113 static void run_random(GrMemoryPool* pool, int loops) {
173 std::unique_ptr<GrMemoryPool> pool;
175 pool = GrMemoryPool::Make(fPoolSize, fPoolSize);
191 static const int kSmallPool = GrMemoryPool::kMinAllocationSize;