8#ifndef GrMemoryPool_DEFINED
9#define GrMemoryPool_DEFINED
33#ifdef SK_FORCE_8_BYTE_ALIGNMENT
40 static constexpr size_t kAlignment =
alignof(std::max_align_t);
56 static std::unique_ptr<GrMemoryPool>
Make(
size_t preallocSize,
size_t minAllocSize);
59 void operator delete(
void*
p) { ::operator
delete(
p); }
109 void validate()
const;
121#if defined(SK_DEBUG) || defined(SK_SANITIZE_ADDRESS)
134 int fAllocationCount;
136 Debug* fDebug{
nullptr};
void * allocate(size_t size)
static constexpr size_t kAlignment
static std::unique_ptr< GrMemoryPool > Make(size_t preallocSize, size_t minAllocSize)
static constexpr size_t kMinAllocationSize
size_t preallocSize() const
size_t preallocSize() const
const Block * headBlock() const
const Block * currentBlock() const