Home
last modified time | relevance | path

Searched refs:GrMemoryPool (Results 1 - 9 of 9) sorted by relevance

/third_party/skia/src/gpu/
H A DGrMemoryPool.cpp8 #include "src/gpu/GrMemoryPool.h"
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, fAllocato in GrMemoryPool()
[all...]
H A DGrMemoryPool.h25 class GrMemoryPool { class
50 static std::unique_ptr<GrMemoryPool> Make(size_t preallocSize, size_t minAllocSize);
52 ~GrMemoryPool();
56 * Allocates memory. The memory must be freed with release() before the GrMemoryPool is deleted.
76 * performed automatically whenever a GrMemoryPool is destroyed.
82 * Returns the total allocated size of the GrMemoryPool minus any preallocated amount
87 * Returns the preallocated size of the GrMemoryPool
91 return offsetof(GrMemoryPool, fAllocator) + fAllocator.preallocSize(); in preallocSize()
106 // Per-allocation overhead so that GrMemoryPool can always identify the block owning each and
119 GrMemoryPool(size_
[all...]
H A DGrProcessor.cpp10 #include "src/gpu/GrMemoryPool.h"
36 GrMemoryPool* pool() const { in pool()
37 static GrMemoryPool* gPool = GrMemoryPool::Make(4096, 4096).release(); in pool()
H A DGrDirectContextPriv.h21 class GrMemoryPool;
/third_party/skia/bench/
H A DGrMemoryPoolBench.cpp11 #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) { in run_stack()
68 static void run_queue(GrMemoryPool* poo
[all...]
H A DVertexColorSpaceBench.cpp16 #include "src/gpu/GrMemoryPool.h"
170 friend class ::GrMemoryPool;
/third_party/skia/tests/
H A DGrMemoryPoolTest.cpp12 #include "src/gpu/GrMemoryPool.h"
16 // and delete to use a GrMemoryPool. The objects have values of different types
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()
230 // GrMemoryPool requires that it's empty at the point of destruction. This helps
234 AutoPoolReleaser(GrMemoryPool& pool): fPool(pool) { in AutoPoolReleaser()
245 GrMemoryPool& fPool;
250 constexpr size_t kSmallestMinAllocSize = GrMemoryPool in DEF_TEST()
[all...]
/third_party/skia/src/sksl/
H A DSkSLMemoryPool.h17 #include "src/gpu/GrMemoryPool.h"
20 using MemoryPool = ::GrMemoryPool;
25 // When Ganesh is disabled, GrMemoryPool is not linked in. We include a minimal class which mimics
26 // the GrMemoryPool interface but simply redirects to the system allocator.
/third_party/skia/include/gpu/
H A DGrRecordingContext.h24 class GrMemoryPool;

Completed in 4 milliseconds