Flutter Engine
The Flutter Engine
|
#include <Buffer.h>
Public Member Functions | |
size_t | size () const |
void * | map () |
void | asyncMap (GpuFinishedProc=nullptr, GpuFinishedContext=nullptr) |
void | unmap () |
bool | isMapped () const |
virtual bool | isUnmappable () const |
const char * | getResourceType () const override |
Public Member Functions inherited from skgpu::graphite::Resource | |
Resource (const Resource &)=delete | |
Resource (Resource &&)=delete | |
Resource & | operator= (const Resource &)=delete |
Resource & | operator= (Resource &&)=delete |
void | ref () const |
void | unref () const |
void | refCommandBuffer () const |
void | unrefCommandBuffer () const |
Ownership | ownership () const |
skgpu::Budgeted | budgeted () const |
size_t | gpuMemorySize () const |
UniqueID | uniqueID () const |
virtual const char * | getResourceType () const =0 |
std::string | getLabel () const |
void | setLabel (std::string_view label) |
bool | wasDestroyed () const |
const GraphiteResourceKey & | key () const |
void | setKey (const GraphiteResourceKey &key) |
void | dumpMemoryStatistics (SkTraceMemoryDump *traceMemoryDump) const |
virtual void | prepareForReturnToCache (const std::function< void()> &takeRef) |
Protected Member Functions | |
Buffer (const SharedContext *sharedContext, size_t size, bool commandBufferRefsAsUsageRefs=false) | |
Protected Member Functions inherited from skgpu::graphite::Resource | |
Resource (const SharedContext *, Ownership, skgpu::Budgeted, size_t gpuMemorySize, bool commandBufferRefsAsUsageRefs=false) | |
virtual | ~Resource () |
const SharedContext * | sharedContext () const |
virtual void | onDumpMemoryStatistics (SkTraceMemoryDump *traceMemoryDump, const char *dumpName) const |
void | setDeleteASAP () |
Protected Attributes | |
void * | fMapPtr = nullptr |
Private Member Functions | |
virtual void | onMap ()=0 |
virtual void | onAsyncMap (GpuFinishedProc, GpuFinishedContext) |
virtual void | onUnmap ()=0 |
|
inlineprotected |
Definition at line 38 of file Buffer.h.
void skgpu::graphite::Buffer::asyncMap | ( | GpuFinishedProc | proc = nullptr , |
GpuFinishedContext | ctx = nullptr |
||
) |
Definition at line 22 of file Buffer.cpp.
|
inlineoverridevirtual |
Implements skgpu::graphite::Resource.
Definition at line 35 of file Buffer.h.
|
virtual |
void * skgpu::graphite::Buffer::map | ( | ) |
Definition at line 14 of file Buffer.cpp.
|
privatevirtual |
Definition at line 35 of file Buffer.cpp.
|
privatepure virtual |
|
privatepure virtual |
|
inline |
void skgpu::graphite::Buffer::unmap | ( | ) |
Definition at line 27 of file Buffer.cpp.