/external/skia/src/gpu/ |
D | GrMemoryPool.cpp | 22 std::unique_ptr<GrMemoryPool> GrMemoryPool::Make(size_t preallocSize, size_t minAllocSize) { in Make() 23 static_assert(sizeof(GrMemoryPool) < GrMemoryPool::kMinAllocationSize); 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() function in GrMemoryPool 35 preallocSize - offsetof(GrMemoryPool, fAllocator) - sizeof(GrBlockAllocator)) { in GrMemoryPool() 39 GrMemoryPool::~GrMemoryPool() { in ~GrMemoryPool() 45 void GrMemoryPool::reportLeaks() const { in reportLeaks() 62 void* GrMemoryPool::allocate(size_t size) { in allocate() 97 void GrMemoryPool::release(void* p) { in release() 135 void GrMemoryPool::validate() const { in validate()
|
D | GrMemoryPool.h | 25 class GrMemoryPool { 50 static std::unique_ptr<GrMemoryPool> Make(size_t preallocSize, size_t minAllocSize); 52 ~GrMemoryPool(); 91 return offsetof(GrMemoryPool, fAllocator) + fAllocator.preallocSize(); in preallocSize() 119 GrMemoryPool(size_t preallocSize, size_t minAllocSize);
|
D | GrProcessor.cpp | 36 GrMemoryPool* pool() const { in pool() 37 static GrMemoryPool* gPool = GrMemoryPool::Make(4096, 4096).release(); in pool()
|
D | GrDirectContextPriv.h | 18 class GrMemoryPool; variable
|
/external/skqp/tests/ |
D | GrMemoryPoolTest.cpp | 48 GrMemoryPool* pool = new GrMemoryPool(preallocSize, minAllocSize); in SetAllocator() 57 static std::unique_ptr<GrMemoryPool> gPool; 61 std::unique_ptr<GrMemoryPool> A::gPool; 175 DEF_TEST(GrMemoryPool, reporter) { in DEF_TEST() argument 233 AutoPoolReleaser(GrMemoryPool& pool): fPool(pool) { in AutoPoolReleaser() 244 GrMemoryPool& fPool; 249 constexpr size_t kSmallestMinAllocSize = GrMemoryPool::kSmallestMinAllocSize; in DEF_TEST() 252 auto allocateMemory = [](GrMemoryPool& pool, AutoPoolReleaser& r) { in DEF_TEST() 261 GrMemoryPool pool(0, 0); in DEF_TEST() 268 GrMemoryPool pool(kSmallestMinAllocSize, kMinAllocSize); in DEF_TEST() [all …]
|
/external/skia/bench/ |
D | GrMemoryPoolBench.cpp | 18 struct alignas(GrMemoryPool::kAlignment) Aligned { 22 static_assert(sizeof(Aligned) % GrMemoryPool::kAlignment == 0); 30 static_assert(sizeof(Unaligned) % GrMemoryPool::kAlignment != 0); 33 static_assert(GrAlignTo(sizeof(Unaligned), GrMemoryPool::kAlignment) == sizeof(Aligned)); 37 typedef void (*RunBenchProc)(GrMemoryPool*, int); 44 static void run_stack(GrMemoryPool* pool, int loops) { in run_stack() 68 static void run_queue(GrMemoryPool* pool, int loops) { in run_queue() 92 static void run_pushpop(GrMemoryPool* pool, int loops) { in run_pushpop() 113 static void run_random(GrMemoryPool* pool, int loops) { in run_random() 173 std::unique_ptr<GrMemoryPool> pool; in onDraw() [all …]
|
D | VertexColorSpaceBench.cpp | 168 friend class ::GrMemoryPool;
|
/external/skia/tests/ |
D | GrMemoryPoolTest.cpp | 48 gPool = GrMemoryPool::Make(preallocSize, minAllocSize); in SetAllocator() 60 static std::unique_ptr<GrMemoryPool> gPool; 64 std::unique_ptr<GrMemoryPool> A::gPool; 175 DEF_TEST(GrMemoryPool, reporter) { in DEF_TEST() argument 236 AutoPoolReleaser(GrMemoryPool& pool): fPool(pool) { in AutoPoolReleaser() 247 GrMemoryPool& fPool; 252 constexpr size_t kSmallestMinAllocSize = GrMemoryPool::kMinAllocationSize; in DEF_TEST() 255 auto allocateMemory = [](GrMemoryPool& pool, AutoPoolReleaser& r) { in DEF_TEST() 264 auto pool = GrMemoryPool::Make(0, 0); in DEF_TEST() 270 auto pool = GrMemoryPool::Make(kSmallestMinAllocSize, kSmallestMinAllocSize / 2); in DEF_TEST() [all …]
|
/external/skqp/src/gpu/ |
D | GrMemoryPool.cpp | 28 constexpr size_t GrMemoryPool::kSmallestMinAllocSize; 30 GrMemoryPool::GrMemoryPool(size_t preallocSize, size_t minAllocSize) { in GrMemoryPool() function in GrMemoryPool 47 GrMemoryPool::~GrMemoryPool() { in ~GrMemoryPool() 68 void* GrMemoryPool::allocate(size_t size) { in allocate() 109 void GrMemoryPool::release(void* p) { in release() 151 GrMemoryPool::BlockHeader* GrMemoryPool::CreateBlock(size_t blockSize) { in CreateBlock() 166 void GrMemoryPool::DeleteBlock(BlockHeader* block) { in DeleteBlock() 172 void GrMemoryPool::validate() { in validate()
|
D | GrMemoryPool.h | 26 class GrMemoryPool { 40 GrMemoryPool(size_t preallocSize, size_t minAllocSize); 42 ~GrMemoryPool(); 152 GrMemoryPool fMemoryPool;
|
D | GrProcessor.cpp | 114 GrMemoryPool* pool() const { in pool() 115 static GrMemoryPool gPool(4096, 4096); in pool()
|
/external/skqp/bench/ |
D | GrMemoryPoolBench.cpp | 27 static GrMemoryPool gBenchPool; 29 GrMemoryPool A::gBenchPool(10 * (1 << 10), 10 * (1 << 10)); 89 static GrMemoryPool gBenchPool; 91 GrMemoryPool B::gBenchPool(10 * (1 << 10), 10 * (1 << 10)); 134 static GrMemoryPool gBenchPool; 136 GrMemoryPool C::gBenchPool(10 * (1 << 10), 10 * (1 << 10));
|
/external/skia/src/sksl/ |
D | SkSLMemoryPool.h | 20 using MemoryPool = ::GrMemoryPool;
|
/external/skia/include/gpu/ |
D | GrRecordingContext.h | 24 class GrMemoryPool; variable
|
/external/skqp/gn/ |
D | gpu.gni | 117 "$_src/gpu/GrMemoryPool.cpp", 118 "$_src/gpu/GrMemoryPool.h",
|
/external/skia/gn/ |
D | gpu.gni | 130 "$_src/gpu/GrMemoryPool.cpp", 131 "$_src/gpu/GrMemoryPool.h",
|
/external/skqp/ |
D | Android.bp | 857 "src/gpu/GrMemoryPool.cpp",
|
/external/skia/ |
D | Android.bp | 468 "src/gpu/GrMemoryPool.cpp", 1452 "src/gpu/GrMemoryPool.cpp",
|
D | BUILD.gn | 628 "src/gpu/GrMemoryPool.cpp",
|