Flutter Engine
The Flutter Engine
|
#include <SkDiscardableMemoryPool.h>
Public Member Functions | |
virtual size_t | getRAMUsed ()=0 |
virtual void | setRAMBudget (size_t budget)=0 |
virtual size_t | getRAMBudget ()=0 |
virtual void | dumpPool ()=0 |
Public Member Functions inherited from SkDiscardableMemory::Factory | |
virtual SkDiscardableMemory * | create (size_t bytes)=0 |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Static Public Member Functions | |
static sk_sp< SkDiscardableMemoryPool > | Make (size_t size) |
An implementation of Discardable Memory that manages a fixed-size budget of memory. When the allocated memory exceeds this size, unlocked blocks of memory are purged. If all memory is locked, it can exceed the memory-use budget.
Definition at line 28 of file SkDiscardableMemoryPool.h.
|
pure virtual |
purges all unlocked DMs
|
pure virtual |
|
pure virtual |
|
static |
This non-global pool can be used for unit tests to verify that the pool works.
Definition at line 233 of file SkDiscardableMemoryPool.cpp.
|
pure virtual |