Lines Matching full:pool

54 Pool::~Pool() {  in ~Pool()
56 SkDEBUGFAIL("SkSL pool is being destroyed while it is still attached to the thread"); in ~Pool()
63 VLOG("DELETE Pool:0x%016llX\n", (uint64_t)fMemPool.get()); in ~Pool()
66 std::unique_ptr<Pool> Pool::Create() { in Create()
67 auto pool = std::unique_ptr<Pool>(new Pool); in Create() local
68 pool->fMemPool = MemoryPool::Make(/*preallocSize=*/65536, /*minAllocSize=*/32768); in Create()
69 VLOG("CREATE Pool:0x%016llX\n", (uint64_t)pool->fMemPool.get()); in Create()
70 return pool; in Create()
73 bool Pool::IsAttached() { in IsAttached()
77 void Pool::attachToThread() { in attachToThread()
78 VLOG("ATTACH Pool:0x%016llX\n", (uint64_t)fMemPool.get()); in attachToThread()
83 void Pool::detachFromThread() { in detachFromThread()
85 VLOG("DETACH Pool:0x%016llX\n", (uint64_t)memPool); in detachFromThread()
91 void* Pool::AllocMemory(size_t size) { in AllocMemory()
92 // Is a pool attached? in AllocMemory()
96 VLOG("ALLOC Pool:0x%016llX 0x%016llX\n", (uint64_t)memPool, (uint64_t)ptr); in AllocMemory()
100 // There's no pool attached. Allocate memory using the system allocator. in AllocMemory()
102 VLOG("ALLOC Pool:__________________ 0x%016llX\n", (uint64_t)ptr); in AllocMemory()
106 void Pool::FreeMemory(void* ptr) { in FreeMemory()
107 // Is a pool attached? in FreeMemory()
110 VLOG("FREE Pool:0x%016llX 0x%016llX\n", (uint64_t)memPool, (uint64_t)ptr); in FreeMemory()
115 // There's no pool attached. Free it using the system allocator. in FreeMemory()
116 VLOG("FREE Pool:__________________ 0x%016llX\n", (uint64_t)ptr); in FreeMemory()