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 Public Member Functions inherited from GrMtlTexture | |
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 Public Member Functions inherited from GrTexture | |
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 Public Member Functions inherited from GrSurface | |
static size_t | ComputeSize (const GrBackendFormat &, SkISize dimensions, int colorSamplesPerPixel, skgpu::Mipmapped, bool binSize=false) |
Static Public Member Functions inherited from GrGpuResource | |
static uint32_t | CreateUniqueID () |
Static Public Member Functions inherited from GrMtlRenderTarget | |
static sk_sp< GrMtlRenderTarget > | MakeWrappedRenderTarget (GrMtlGpu *, SkISize, int sampleCnt, id< MTLTexture >) |
Protected Member Functions | |
void | onAbandon () override |
void | onRelease () override |
Protected Member Functions inherited from GrMtlTexture | |
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 |
Protected Member Functions inherited from GrTexture | |
GrTexture (GrGpu *, const SkISize &, GrProtected, GrTextureType, GrMipmapStatus, std::string_view label) | |
virtual bool | onStealBackendTexture (GrBackendTexture *, SkImages::BackendTextureReleaseProc *)=0 |
void | computeScratchKey (skgpu::ScratchKey *) const override |
Protected Member Functions inherited from GrSurface | |
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 |
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 GrMtlRenderTarget | |
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 |
Protected Member Functions inherited from GrRenderTarget | |
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 | |
Public Types inherited from GrSurface | |
typedef void * | ReleaseCtx |
typedef void(* | ReleaseProc) (ReleaseCtx) |
Public Types inherited from GrIORef< GrGpuResource > | |
enum | LastRemovedRef |
Protected Attributes inherited from GrMtlRenderTarget | |
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.