Flutter Engine
The Flutter Engine
|
#include <SkDiscardableMemory.h>
Classes | |
class | Factory |
Public Member Functions | |
virtual | ~SkDiscardableMemory () |
virtual bool | lock ()=0 |
virtual void * | data ()=0 |
virtual void | unlock ()=0 |
Static Public Member Functions | |
static SkDiscardableMemory * | Create (size_t bytes) |
Protected Member Functions | |
SkDiscardableMemory ()=default | |
SkDiscardableMemory (const SkDiscardableMemory &)=delete | |
SkDiscardableMemory & | operator= (const SkDiscardableMemory &)=delete |
Interface for discardable memory. Implementation is provided by the embedder.
Definition at line 18 of file SkDiscardableMemory.h.
|
inlinevirtual |
|
protecteddefault |
|
protecteddelete |
|
static |
Factory method that creates, initializes and locks an SkDiscardableMemory object. If either of these steps fails, a nullptr pointer will be returned.
Definition at line 12 of file SkDiscardableMemory_none.cpp.
|
pure virtual |
Returns the current pointer for the discardable memory. This call is ONLY valid when the discardable memory object is locked.
|
pure virtual |
|
protecteddelete |
|
pure virtual |
Unlock the memory so that it can be purged by the system. Must be called after every successful lock call.