26Pool::Pool() =
default;
30 SkDEBUGFAIL(
"SkSL pool is being destroyed while it is still attached to the thread");
34 SkVLOG(
"DELETE Pool:0x%016llX\n", (uint64_t)fMemPool.get());
38 auto pool = std::unique_ptr<Pool>(
new Pool);
40 SkVLOG(
"CREATE Pool:0x%016llX\n", (uint64_t)
pool->fMemPool.get());
49 SkVLOG(
"ATTACH Pool:0x%016llX\n", (uint64_t)fMemPool.get());
55 SkVLOG(
"DETACH Pool:0x%016llX\n", (uint64_t)memPool);
65 SkVLOG(
"ALLOC Pool:0x%016llX 0x%016llX\n", (uint64_t)memPool, (uint64_t)ptr);
70 void* ptr = ::operator
new(size);
71 SkVLOG(
"ALLOC Pool:__________________ 0x%016llX\n", (uint64_t)ptr);
79 SkVLOG(
"FREE Pool:0x%016llX 0x%016llX\n", (uint64_t)memPool, (uint64_t)ptr);
80 memPool->release(ptr);
85 SkVLOG(
"FREE Pool:__________________ 0x%016llX\n", (uint64_t)ptr);
86 ::operator
delete(ptr);
#define SkDEBUGFAIL(message)
static std::unique_ptr< MemoryPool > Make()
void * allocate(size_t size)
static std::unique_ptr< Pool > Create()
static void * AllocMemory(size_t size)
static void FreeMemory(void *ptr)
static thread_local MemoryPool * sMemPool
static MemoryPool * get_thread_local_memory_pool()
static void set_thread_local_memory_pool(MemoryPool *memPool)