Searched refs:gPool (Results 1 – 8 of 8) sorted by relevance
30 if (!gPool) { in operator new()33 return gPool->allocate(size); in operator new()38 if (!gPool) { in operator delete()41 return gPool->release(p); in operator delete()48 gPool = GrMemoryPool::Make(preallocSize, minAllocSize); in SetAllocator()51 static void ResetAllocator() { gPool.reset(); } in ResetAllocator()54 static std::unique_ptr<GrMemoryPool> gPool; member in A58 std::unique_ptr<GrMemoryPool> A::gPool; member in A
110 static SkDiscardableMemoryPool* gPool; variable112 SkASSERT(gPool); in pool_factory()113 return gPool->create(bytes); in pool_factory()125 gPool = pool.get(); in DEF_TEST()
112 static SkDiscardableMemoryPool* gPool = nullptr; variable114 SkASSERT(gPool); in pool_factory()115 return gPool->create(bytes); in pool_factory()132 gPool = pool.get(); in DEF_TEST()
30 if (!gPool.get()) { in operator new()33 return gPool->allocate(size); in operator new()38 if (!gPool.get()) { in operator delete()41 return gPool->release(p); in operator delete()49 gPool.reset(pool); in SetAllocator()53 gPool.reset(nullptr); in ResetAllocator()57 static std::unique_ptr<GrMemoryPool> gPool; member in A61 std::unique_ptr<GrMemoryPool> A::gPool; member in A
115 static SkDiscardableMemoryPool* gPool = nullptr; variable117 SkASSERT(gPool); in pool_factory()118 return gPool->create(bytes); in pool_factory()135 gPool = pool.get(); in DEF_TEST()
39 static GrMemoryPool* gPool = GrMemoryPool::Make(4096, 4096).release(); in pool() local40 return gPool; in pool()
115 static GrMemoryPool gPool(4096, 4096); in pool() local116 return &gPool; in pool()