Flutter Engine
The Flutter Engine
|
#include <SkSLPool.h>
Public Member Functions | |
~Pool () | |
void | attachToThread () |
void | detachFromThread () |
Static Public Member Functions | |
static std::unique_ptr< Pool > | Create () |
static void * | AllocMemory (size_t size) |
static void | FreeMemory (void *ptr) |
static bool | IsAttached () |
Efficiently allocates memory in an SkSL program. Optimized for allocate/release performance over memory efficiency.
All allocated memory must be released back to the pool before it can be destroyed or recycled.
Definition at line 25 of file SkSLPool.h.
SkSL::Pool::~Pool | ( | ) |
Definition at line 28 of file SkSLPool.cpp.
|
static |
Definition at line 60 of file SkSLPool.cpp.
void SkSL::Pool::attachToThread | ( | ) |
Definition at line 48 of file SkSLPool.cpp.
|
static |
Definition at line 37 of file SkSLPool.cpp.
void SkSL::Pool::detachFromThread | ( | ) |
Definition at line 54 of file SkSLPool.cpp.
|
static |
Definition at line 75 of file SkSLPool.cpp.
|
static |
Definition at line 44 of file SkSLPool.cpp.