Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Macros | Functions
SkDiscardableMemoryPool.h File Reference
#include "include/private/base/SkMutex.h"
#include "include/private/chromium/SkDiscardableMemory.h"

Go to the source code of this file.

Classes

class  SkDiscardableMemoryPool
 

Macros

#define SK_LAZY_CACHE_STATS   0
 
#define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE   (128 * 1024 * 1024)
 

Functions

SkDiscardableMemoryPoolSkGetGlobalDiscardableMemoryPool ()
 

Macro Definition Documentation

◆ SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE

#define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE   (128 * 1024 * 1024)

Definition at line 62 of file SkDiscardableMemoryPool.h.

◆ SK_LAZY_CACHE_STATS

#define SK_LAZY_CACHE_STATS   0

Definition at line 18 of file SkDiscardableMemoryPool.h.

Function Documentation

◆ SkGetGlobalDiscardableMemoryPool()

SkDiscardableMemoryPool * SkGetGlobalDiscardableMemoryPool ( )

Returns (and creates if needed) a threadsafe global SkDiscardableMemoryPool.

Definition at line 237 of file SkDiscardableMemoryPool.cpp.

237 {
238 // Intentionally leak this global pool.
239 static SkDiscardableMemoryPool* global =
240 new DiscardableMemoryPool(SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE);
241 return global;
242}
#define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE