Lines Matching refs:SkDiscardableMemoryPool
8 #include "SkDiscardableMemoryPool.h"
17 * a SkDiscardableMemoryPool object to manage the memory.
21 SkPoolDiscardableMemory(SkDiscardableMemoryPool* pool,
27 friend class SkDiscardableMemoryPool;
30 SkDiscardableMemoryPool* const fPool;
36 SkPoolDiscardableMemory::SkPoolDiscardableMemory(SkDiscardableMemoryPool* pool,
72 SkDiscardableMemoryPool::SkDiscardableMemoryPool(size_t budget,
82 SkDiscardableMemoryPool::~SkDiscardableMemoryPool() {
89 void SkDiscardableMemoryPool::dumpDownTo(size_t budget) {
117 SkDiscardableMemory* SkDiscardableMemoryPool::create(size_t bytes) {
131 void SkDiscardableMemoryPool::free(SkPoolDiscardableMemory* dm) {
145 bool SkDiscardableMemoryPool::lock(SkPoolDiscardableMemory* dm) {
171 void SkDiscardableMemoryPool::unlock(SkPoolDiscardableMemory* dm) {
178 size_t SkDiscardableMemoryPool::getRAMUsed() {
181 void SkDiscardableMemoryPool::setRAMBudget(size_t budget) {
186 void SkDiscardableMemoryPool::dumpPool() {
193 static void create_pool(SkDiscardableMemoryPool** pool) {
195 *pool = SkNEW_ARGS(SkDiscardableMemoryPool,
199 SkDiscardableMemoryPool* SkGetGlobalDiscardableMemoryPool() {
200 static SkDiscardableMemoryPool* gPool(NULL);