Flutter Engine
The Flutter Engine
|
#include <GrGLTextureRenderTarget.h>
Static Public Member Functions | |
static sk_sp< GrGLTextureRenderTarget > | MakeWrapped (GrGLGpu *gpu, int sampleCount, const GrGLTexture::Desc &, sk_sp< GrGLTextureParameters >, const GrGLRenderTarget::IDs &, GrWrapCacheable, GrMipmapStatus, std::string_view label) |
Static Public Member Functions inherited from GrGLTexture | |
static GrTextureType | TextureTypeFromTarget (GrGLenum textureTarget) |
static sk_sp< GrGLTexture > | MakeWrapped (GrGLGpu *, GrMipmapStatus, const Desc &, sk_sp< GrGLTextureParameters >, GrWrapCacheable, GrIOType, std::string_view label) |
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 GrGLRenderTarget | |
static sk_sp< GrGLRenderTarget > | MakeWrapped (GrGLGpu *, const SkISize &, GrGLFormat, int sampleCount, const IDs &, int stencilBits, skgpu::Protected, std::string_view label) |
Protected Member Functions | |
void | onAbandon () override |
void | onRelease () override |
Protected Member Functions inherited from GrGLTexture | |
GrGLTexture (GrGLGpu *, const Desc &, sk_sp< GrGLTextureParameters >, GrMipmapStatus, std::string_view label) | |
GrGLTexture (GrGLGpu *, const Desc &, GrMipmapStatus, sk_sp< GrGLTextureParameters >, GrWrapCacheable, GrIOType, std::string_view label) | |
void | init (const Desc &) |
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 GrGLRenderTarget | |
GrGLRenderTarget (GrGLGpu *, const SkISize &, GrGLFormat, int sampleCount, const IDs &, skgpu::Protected, std::string_view label) | |
void | init (GrGLFormat, const IDs &) |
void | bindInternal (GrGLenum fboTarget, bool useMultisampleFBO) |
void | onAbandon () override |
void | onRelease () override |
int | totalMemorySamplesPerPixel () const |
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 |
Public Types inherited from GrGLRenderTarget | |
enum | { kUnresolvableFBOID = 0 } |
enum class | ResolveDirection : bool { kSingleToMSAA , kMSAAToSingle } |
Definition at line 23 of file GrGLTextureRenderTarget.h.
GrGLTextureRenderTarget::GrGLTextureRenderTarget | ( | GrGLGpu * | gpu, |
skgpu::Budgeted | budgeted, | ||
int | sampleCount, | ||
const GrGLTexture::Desc & | texDesc, | ||
const GrGLRenderTarget::IDs & | rtIDs, | ||
GrMipmapStatus | mipmapStatus, | ||
std::string_view | label | ||
) |
Definition at line 16 of file GrGLTextureRenderTarget.cpp.
|
inlineoverridevirtual |
Reimplemented from GrGLRenderTarget.
Definition at line 48 of file GrGLTextureRenderTarget.h.
|
overridevirtual |
Reimplemented from GrGLRenderTarget.
Definition at line 59 of file GrGLTextureRenderTarget.cpp.
|
overridevirtual |
Dumps memory usage information for this GrGpuResource to traceMemoryDump. Typically, subclasses should not need to override this, and should only need to override setMemoryBacking.
Reimplemented from GrGLRenderTarget.
Definition at line 45 of file GrGLTextureRenderTarget.cpp.
|
static |
Definition at line 66 of file GrGLTextureRenderTarget.cpp.
|
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 GrGLRenderTarget.
Definition at line 54 of file GrGLTextureRenderTarget.h.
|
inlineoverrideprotectedvirtual |
Overridden to free GPU resources in the backend API.
Reimplemented from GrGLRenderTarget.
Definition at line 59 of file GrGLTextureRenderTarget.h.