Flutter Engine
The Flutter Engine
|
#include <GrBufferAllocPool.h>
Public Member Functions | |
sk_sp< GrCpuBuffer > | makeBuffer (size_t size, bool mustBeInitialized) |
void | releaseAll () |
Public Member Functions inherited from GrNonAtomicRef< CpuBufferCache > | |
GrNonAtomicRef () | |
bool | unique () const |
int | refCnt () const |
void | ref () const |
void | unref () const |
Public Member Functions inherited from SkNoncopyable | |
SkNoncopyable ()=default | |
SkNoncopyable (SkNoncopyable &&)=default | |
SkNoncopyable & | operator= (SkNoncopyable &&)=default |
Static Public Member Functions | |
static sk_sp< CpuBufferCache > | Make (int maxBuffersToCache) |
A cache object that can be shared by multiple GrBufferAllocPool instances. It caches cpu buffer allocations to avoid reallocating them.
Definition at line 43 of file GrBufferAllocPool.h.
|
static |
Definition at line 23 of file GrBufferAllocPool.cpp.
sk_sp< GrCpuBuffer > GrBufferAllocPool::CpuBufferCache::makeBuffer | ( | size_t | size, |
bool | mustBeInitialized | ||
) |
Definition at line 35 of file GrBufferAllocPool.cpp.
void GrBufferAllocPool::CpuBufferCache::releaseAll | ( | ) |