Flutter Engine
The Flutter Engine
|
#include <GrMtlBuffer.h>
Public Member Functions | |
~GrMtlBuffer () override | |
id< MTLBuffer > | mtlBuffer () const |
Public Member Functions inherited from GrGpuBuffer | |
GrAccessPattern | accessPattern () const |
size_t | size () const final |
void | ref () const final |
void | unref () const final |
void * | map () |
void | unmap () |
bool | isMapped () const |
bool | isCpuBuffer () const final |
bool | clearToZero () |
bool | updateData (const void *src, size_t offset, size_t size, bool preserve) |
GrGpuBufferType | intendedType () const |
Public Member Functions inherited from GrGpuResource | |
bool | wasDestroyed () const |
const GrDirectContext * | getContext () const |
GrDirectContext * | getContext () |
size_t | gpuMemorySize () const |
UniqueID | uniqueID () const |
const skgpu::UniqueKey & | getUniqueKey () const |
std::string | getLabel () const |
void | setLabel (std::string_view label) |
CacheAccess | cacheAccess () |
const CacheAccess | cacheAccess () const |
ProxyAccess | proxyAccess () |
ResourcePriv | resourcePriv () |
const ResourcePriv | resourcePriv () const |
virtual void | dumpMemoryStatistics (SkTraceMemoryDump *traceMemoryDump) const |
virtual const char * | getResourceType () const =0 |
Public Member Functions inherited from GrIORef< GrGpuResource > | |
bool | unique () const |
void | ref () const |
void | unref () const |
void | refCommandBuffer () const |
void | unrefCommandBuffer () const |
Public Member Functions inherited from SkNoncopyable | |
SkNoncopyable ()=default | |
SkNoncopyable (SkNoncopyable &&)=default | |
SkNoncopyable & | operator= (SkNoncopyable &&)=default |
Public Member Functions inherited from GrBuffer | |
GrBuffer (const GrBuffer &)=delete | |
GrBuffer & | operator= (const GrBuffer &)=delete |
virtual | ~GrBuffer ()=default |
virtual void | ref () const =0 |
virtual void | unref () const =0 |
virtual size_t | size () const =0 |
virtual bool | isCpuBuffer () const =0 |
Static Public Member Functions | |
static sk_sp< GrMtlBuffer > | Make (GrMtlGpu *, size_t size, GrGpuBufferType intendedType, GrAccessPattern) |
Static Public Member Functions inherited from GrGpuBuffer | |
static void | ComputeScratchKeyForDynamicBuffer (size_t size, GrGpuBufferType, skgpu::ScratchKey *) |
Static Public Member Functions inherited from GrGpuResource | |
static uint32_t | CreateUniqueID () |
Protected Member Functions | |
GrMtlBuffer (GrMtlGpu *, size_t size, GrGpuBufferType intendedType, GrAccessPattern, std::string_view label) | |
void | onAbandon () override |
void | onRelease () override |
Protected Member Functions inherited from GrGpuBuffer | |
GrGpuBuffer (GrGpu *, size_t sizeInBytes, GrGpuBufferType, GrAccessPattern, std::string_view label) | |
Protected Member Functions inherited from GrGpuResource | |
void | registerWithCache (skgpu::Budgeted) |
void | registerWithCacheWrapped (GrWrapCacheable) |
GrGpuResource (GrGpu *, std::string_view label) | |
virtual | ~GrGpuResource () |
GrGpu * | getGpu () const |
virtual void | onRelease () |
virtual void | onAbandon () |
virtual void | setMemoryBacking (SkTraceMemoryDump *, const SkString &) const |
SkString | getResourceName () const |
void | dumpMemoryStatisticsPriv (SkTraceMemoryDump *traceMemoryDump, const SkString &resourceName, const char *type, size_t size) const |
Protected Member Functions inherited from GrIORef< GrGpuResource > | |
GrIORef () | |
bool | internalHasRef () const |
bool | internalHasNoCommandBufferUsages () const |
void | addInitialRef () const |
Protected Member Functions inherited from GrBuffer | |
GrBuffer ()=default | |
Additional Inherited Members | |
Public Types inherited from GrIORef< GrGpuResource > | |
enum | LastRemovedRef |
Protected Types inherited from GrGpuBuffer | |
enum class | MapType { kRead , kWriteDiscard } |
Protected Attributes inherited from GrGpuBuffer | |
void * | fMapPtr |
Definition at line 19 of file GrMtlBuffer.h.
|
override |
Definition at line 81 of file GrMtlBuffer.mm.
|
protected |
Definition at line 49 of file GrMtlBuffer.mm.
|
static |
Definition at line 38 of file GrMtlBuffer.mm.
|
inline |
Definition at line 28 of file GrMtlBuffer.h.
|
overrideprotectedvirtual |
Overridden to abandon any internal handles, ptrs, etc to backend API resources. This may be called when the underlying 3D context is no longer valid and so no backend API calls should be made.
Reimplemented from GrGpuResource.
Definition at line 135 of file GrMtlBuffer.mm.
|
overrideprotectedvirtual |
Overridden to free GPU resources in the backend API.
Reimplemented from GrGpuResource.
Definition at line 142 of file GrMtlBuffer.mm.