![]() |
Flutter Engine
The Flutter Engine
|
#include <GrMtlTextureRenderTarget.h>
Static Public Member Functions | |
static sk_sp< GrMtlTextureRenderTarget > | MakeNewTextureRenderTarget (GrMtlGpu *, skgpu::Budgeted, SkISize, int sampleCnt, MTLPixelFormat, uint32_t mipLevels, GrMipmapStatus, std::string_view label) |
static sk_sp< GrMtlTextureRenderTarget > | MakeWrappedTextureRenderTarget (GrMtlGpu *, SkISize, int sampleCnt, id< MTLTexture >, GrWrapCacheable) |
![]() | |
static sk_sp< GrMtlTexture > | MakeNewTexture (GrMtlGpu *, skgpu::Budgeted budgeted, SkISize dimensions, MTLPixelFormat format, uint32_t mipLevels, GrMipmapStatus, std::string_view label) |
static sk_sp< GrMtlTexture > | MakeWrappedTexture (GrMtlGpu *, SkISize, id< MTLTexture >, GrWrapCacheable, GrIOType) |
![]() | |
static bool | StealBackendTexture (sk_sp< GrTexture >, GrBackendTexture *, SkImages::BackendTextureReleaseProc *) |
static void | ComputeScratchKey (const GrCaps &caps, const GrBackendFormat &format, SkISize dimensions, GrRenderable, int sampleCnt, skgpu::Mipmapped, GrProtected, skgpu::ScratchKey *key) |
![]() | |
static size_t | ComputeSize (const GrBackendFormat &, SkISize dimensions, int colorSamplesPerPixel, skgpu::Mipmapped, bool binSize=false) |
![]() | |
static uint32_t | CreateUniqueID () |
![]() | |
static sk_sp< GrMtlRenderTarget > | MakeWrappedRenderTarget (GrMtlGpu *, SkISize, int sampleCnt, id< MTLTexture >) |
Protected Member Functions | |
void | onAbandon () override |
void | onRelease () override |
![]() | |
GrMtlTexture (GrMtlGpu *, SkISize, sk_sp< GrMtlAttachment >, GrMipmapStatus, std::string_view label) | |
GrMtlGpu * | getMtlGpu () const |
void | onAbandon () override |
void | onRelease () override |
bool | onStealBackendTexture (GrBackendTexture *, SkImages::BackendTextureReleaseProc *) override |
void | onSetLabel () override |
![]() | |
GrTexture (GrGpu *, const SkISize &, GrProtected, GrTextureType, GrMipmapStatus, std::string_view label) | |
virtual bool | onStealBackendTexture (GrBackendTexture *, SkImages::BackendTextureReleaseProc *)=0 |
void | computeScratchKey (skgpu::ScratchKey *) const 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 |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
typedef void * | ReleaseCtx |
typedef void(* | ReleaseProc) (ReleaseCtx) |
![]() | |
enum | LastRemovedRef |
![]() | |
sk_sp< GrMtlAttachment > | fColorAttachment |
sk_sp< GrMtlAttachment > | fResolveAttachment |
Definition at line 14 of file GrMtlTextureRenderTarget.h.
|
inlineoverridevirtual |
Reimplemented from GrMtlRenderTarget.
Definition at line 30 of file GrMtlTextureRenderTarget.h.
|
static |
Definition at line 74 of file GrMtlTextureRenderTarget.mm.
|
static |
Definition at line 108 of file GrMtlTextureRenderTarget.mm.
|
inlineoverrideprotectedvirtual |
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 GrMtlRenderTarget.
Definition at line 35 of file GrMtlTextureRenderTarget.h.
|
inlineoverrideprotectedvirtual |
Overridden to free GPU resources in the backend API.
Reimplemented from GrMtlRenderTarget.
Definition at line 40 of file GrMtlTextureRenderTarget.h.