Searched refs:GrMemoryPool (Results 1 – 12 of 12) sorted by relevance
/third_party/skia/src/gpu/ |
D | GrMemoryPool.cpp | 21 std::unique_ptr<GrMemoryPool> GrMemoryPool::Make(size_t preallocSize, size_t minAllocSize) { in Make() 22 static_assert(sizeof(GrMemoryPool) < GrMemoryPool::kMinAllocationSize); 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() function in GrMemoryPool 34 preallocSize - offsetof(GrMemoryPool, fAllocator) - sizeof(SkBlockAllocator)) { in GrMemoryPool() 38 GrMemoryPool::~GrMemoryPool() { in ~GrMemoryPool() 44 void GrMemoryPool::reportLeaks() const { in reportLeaks() 61 void* GrMemoryPool::allocate(size_t size) { in allocate() 96 void GrMemoryPool::release(void* p) { in release() 134 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 | 21 class GrMemoryPool; variable
|
D | BUILD.bazel | 101 "GrMemoryPool.cpp", 102 "GrMemoryPool.h",
|
/third_party/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(SkAlignTo(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 | 170 friend class ::GrMemoryPool;
|
/third_party/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 234 AutoPoolReleaser(GrMemoryPool& pool): fPool(pool) { in AutoPoolReleaser() 245 GrMemoryPool& fPool; 250 constexpr size_t kSmallestMinAllocSize = GrMemoryPool::kMinAllocationSize; in DEF_TEST() 253 auto allocateMemory = [](GrMemoryPool& pool, AutoPoolReleaser& r) { in DEF_TEST() 262 auto pool = GrMemoryPool::Make(0, 0); in DEF_TEST() 268 auto pool = GrMemoryPool::Make(kSmallestMinAllocSize, kSmallestMinAllocSize / 2); in DEF_TEST() [all …]
|
/third_party/skia/src/sksl/ |
D | SkSLMemoryPool.h | 20 using MemoryPool = ::GrMemoryPool;
|
/third_party/skia/include/gpu/ |
D | GrRecordingContext.h | 24 class GrMemoryPool; variable
|
/third_party/skia/gn/ |
D | gpu.gni | 121 "$_src/gpu/GrMemoryPool.cpp", 122 "$_src/gpu/GrMemoryPool.h",
|
/third_party/skia/ |
D | BUILD.gn | 906 "src/gpu/GrMemoryPool.cpp",
|