![]() |
Flutter Engine
The Flutter Engine
|
#include <GrMtlRenderTarget.h>
Static Public Member Functions | |
static sk_sp< GrMtlRenderTarget > | MakeWrappedRenderTarget (GrMtlGpu *, SkISize, int sampleCnt, id< MTLTexture >) |
![]() | |
static size_t | ComputeSize (const GrBackendFormat &, SkISize dimensions, int colorSamplesPerPixel, skgpu::Mipmapped, bool binSize=false) |
![]() | |
static uint32_t | CreateUniqueID () |
Protected Member Functions | |
GrMtlRenderTarget (GrMtlGpu *gpu, SkISize, sk_sp< GrMtlAttachment > colorAttachment, sk_sp< GrMtlAttachment > resolveAttachment, std::string_view label) | |
GrMtlGpu * | getMtlGpu () const |
void | onAbandon () override |
void | onRelease () override |
size_t | onGpuMemorySize () const override |
void | onSetLabel () override |
![]() | |
GrRenderTarget (GrGpu *, const SkISize &, int sampleCount, GrProtected, std::string_view label, sk_sp< GrAttachment > stenicl=nullptr) | |
~GrRenderTarget () override | |
void | onAbandon () override |
void | onRelease () override |
![]() | |
void | setGLRTFBOIDIs0 () |
bool | glRTFBOIDis0 () const |
void | setRequiresManualMSAAResolve () |
bool | requiresManualMSAAResolve () const |
void | setReadOnly () |
void | setVkRTSupportsInputAttachment () |
GrSurface (GrGpu *gpu, const SkISize &dimensions, skgpu::Protected isProtected, std::string_view label) | |
~GrSurface () override | |
void | onRelease () override |
void | onAbandon () override |
![]() | |
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 |
![]() | |
GrIORef () | |
bool | internalHasRef () const |
bool | internalHasNoCommandBufferUsages () const |
void | addInitialRef () const |
Protected Attributes | |
sk_sp< GrMtlAttachment > | fColorAttachment |
sk_sp< GrMtlAttachment > | fResolveAttachment |
Additional Inherited Members | |
![]() | |
typedef void * | ReleaseCtx |
typedef void(* | ReleaseProc) (ReleaseCtx) |
![]() | |
enum | LastRemovedRef |
Definition at line 22 of file GrMtlRenderTarget.h.
|
override |
Definition at line 103 of file GrMtlRenderTarget.mm.
|
protected |
Definition at line 38 of file GrMtlRenderTarget.mm.
|
overridevirtual |
Implements GrSurface.
Reimplemented in GrMtlTextureRenderTarget.
Definition at line 114 of file GrMtlRenderTarget.mm.
|
inlineoverridevirtual |
Implements GrRenderTarget.
Definition at line 33 of file GrMtlRenderTarget.h.
|
inline |
Definition at line 38 of file GrMtlRenderTarget.h.
|
inline |
Definition at line 39 of file GrMtlRenderTarget.h.
|
overridevirtual |
Implements GrRenderTarget.
Definition at line 108 of file GrMtlRenderTarget.mm.
const GrMtlFramebuffer * GrMtlRenderTarget::getFramebuffer | ( | bool | withResolve, |
bool | withStencil | ||
) |
Definition at line 129 of file GrMtlRenderTarget.mm.
|
protected |
Definition at line 151 of file GrMtlRenderTarget.mm.
|
static |
Definition at line 49 of file GrMtlRenderTarget.mm.
|
inline |
Definition at line 45 of file GrMtlRenderTarget.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 GrRenderTarget.
Reimplemented in GrMtlTextureRenderTarget.
Definition at line 156 of file GrMtlRenderTarget.mm.
|
inlineoverrideprotectedvirtual |
|
overrideprotectedvirtual |
Overridden to free GPU resources in the backend API.
Reimplemented from GrRenderTarget.
Reimplemented in GrMtlTextureRenderTarget.
Definition at line 162 of file GrMtlRenderTarget.mm.
|
overrideprotectedvirtual |
Implements GrGpuResource.
Definition at line 173 of file GrMtlRenderTarget.mm.
|
inline |
Definition at line 40 of file GrMtlRenderTarget.h.
|
inline |
Definition at line 41 of file GrMtlRenderTarget.h.
|
protected |
Definition at line 77 of file GrMtlRenderTarget.h.
|
protected |
Definition at line 78 of file GrMtlRenderTarget.h.