Flutter Engine
The Flutter Engine
|
#include <GrGLRenderTarget.h>
Classes | |
struct | IDs |
Public Types | |
enum | { kUnresolvableFBOID = 0 } |
enum class | ResolveDirection : bool { kSingleToMSAA , kMSAAToSingle } |
Public Types inherited from GrSurface | |
typedef void * | ReleaseCtx |
typedef void(* | ReleaseProc) (ReleaseCtx) |
Public Types inherited from GrIORef< GrGpuResource > | |
enum | LastRemovedRef |
Static Public Member Functions | |
static sk_sp< GrGLRenderTarget > | MakeWrapped (GrGLGpu *, const SkISize &, GrGLFormat, int sampleCount, const IDs &, int stencilBits, skgpu::Protected, std::string_view label) |
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 () |
Protected Member Functions | |
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 |
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 |
Definition at line 23 of file GrGLRenderTarget.h.
anonymous enum |
Enumerator | |
---|---|
kUnresolvableFBOID |
Definition at line 30 of file GrGLRenderTarget.h.
|
strong |
Enumerator | |
---|---|
kSingleToMSAA | |
kMSAAToSingle |
Definition at line 90 of file GrGLRenderTarget.h.
|
protected |
Definition at line 41 of file GrGLRenderTarget.cpp.
|
inlineoverridevirtual |
|
overridevirtual |
Implements GrSurface.
Reimplemented in GrGLTextureRenderTarget.
Definition at line 131 of file GrGLRenderTarget.cpp.
|
inline |
Definition at line 73 of file GrGLRenderTarget.h.
|
inline |
Definition at line 85 of file GrGLRenderTarget.h.
void GrGLRenderTarget::bindForResolve | ( | GrGLGpu::ResolveDirection | resolveDirection | ) |
Definition at line 281 of file GrGLRenderTarget.cpp.
|
protected |
Definition at line 199 of file GrGLRenderTarget.cpp.
|
overridevirtual |
Implements GrRenderTarget.
Reimplemented in GrGLTextureRenderTarget.
Definition at line 331 of file GrGLRenderTarget.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 GrGpuResource.
Reimplemented in GrGLTextureRenderTarget.
Definition at line 342 of file GrGLRenderTarget.cpp.
bool GrGLRenderTarget::ensureDynamicMSAAAttachment | ( | ) |
Definition at line 157 of file GrGLRenderTarget.cpp.
|
inline |
Definition at line 67 of file GrGLRenderTarget.h.
|
overridevirtual |
Implements GrRenderTarget.
Definition at line 116 of file GrGLRenderTarget.cpp.
|
inline |
Definition at line 117 of file GrSurface.h.
|
inline |
Definition at line 69 of file GrGLRenderTarget.h.
|
protected |
Definition at line 60 of file GrGLRenderTarget.cpp.
|
inline |
Definition at line 49 of file GrGLRenderTarget.h.
|
inline |
Definition at line 53 of file GrGLRenderTarget.h.
|
static |
Definition at line 85 of file GrGLRenderTarget.cpp.
|
inline |
Definition at line 78 of file GrGLRenderTarget.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.
Reimplemented in GrGLTextureRenderTarget.
Definition at line 319 of file GrGLRenderTarget.cpp.
|
overrideprotectedvirtual |
Overridden to free GPU resources in the backend API.
Reimplemented from GrGpuResource.
Reimplemented in GrGLTextureRenderTarget.
Definition at line 300 of file GrGLRenderTarget.cpp.
|
inlineprotected |
Definition at line 117 of file GrGLRenderTarget.h.