Home
last modified time | relevance | path

Searched refs:GrMemoryPool (Results 1 – 19 of 19) sorted by relevance

/external/skia/src/gpu/
DGrMemoryPool.cpp22 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()
DGrMemoryPool.h25 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);
DGrProcessor.cpp36 GrMemoryPool* pool() const { in pool()
37 static GrMemoryPool* gPool = GrMemoryPool::Make(4096, 4096).release(); in pool()
DGrDirectContextPriv.h18 class GrMemoryPool; variable
/external/skqp/tests/
DGrMemoryPoolTest.cpp48 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/
DGrMemoryPoolBench.cpp18 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 …]
DVertexColorSpaceBench.cpp168 friend class ::GrMemoryPool;
/external/skia/tests/
DGrMemoryPoolTest.cpp48 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/
DGrMemoryPool.cpp28 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()
DGrMemoryPool.h26 class GrMemoryPool {
40 GrMemoryPool(size_t preallocSize, size_t minAllocSize);
42 ~GrMemoryPool();
152 GrMemoryPool fMemoryPool;
DGrProcessor.cpp114 GrMemoryPool* pool() const { in pool()
115 static GrMemoryPool gPool(4096, 4096); in pool()
/external/skqp/bench/
DGrMemoryPoolBench.cpp27 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/
DSkSLMemoryPool.h20 using MemoryPool = ::GrMemoryPool;
/external/skia/include/gpu/
DGrRecordingContext.h24 class GrMemoryPool; variable
/external/skqp/gn/
Dgpu.gni117 "$_src/gpu/GrMemoryPool.cpp",
118 "$_src/gpu/GrMemoryPool.h",
/external/skia/gn/
Dgpu.gni130 "$_src/gpu/GrMemoryPool.cpp",
131 "$_src/gpu/GrMemoryPool.h",
/external/skqp/
DAndroid.bp857 "src/gpu/GrMemoryPool.cpp",
/external/skia/
DAndroid.bp468 "src/gpu/GrMemoryPool.cpp",
1452 "src/gpu/GrMemoryPool.cpp",
DBUILD.gn628 "src/gpu/GrMemoryPool.cpp",