Flutter Engine
The Flutter Engine
|
#include <GrRenderTarget.h>
Protected Member Functions | |
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 |
Private Member Functions | |
virtual bool | completeStencilAttachment (GrAttachment *stencil, bool useMSAASurface)=0 |
Additional Inherited Members | |
Public Types inherited from GrSurface | |
typedef void * | ReleaseCtx |
typedef void(* | ReleaseProc) (ReleaseCtx) |
Public Types inherited from GrIORef< GrGpuResource > | |
enum | LastRemovedRef |
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 () |
GrRenderTarget represents a 2D buffer of pixels that can be rendered to. A context's render target is set by setRenderTarget(). Render targets are created by a createTexture with the kRenderTarget_SurfaceFlag flag. Additionally, GrContext provides methods for creating GrRenderTargets that wrap externally created render targets.
Definition at line 26 of file GrRenderTarget.h.
|
protected |
Definition at line 17 of file GrRenderTarget.cpp.
|
overrideprotecteddefault |
|
inlinevirtual |
Reimplemented in GrGLRenderTarget.
Definition at line 32 of file GrRenderTarget.h.
|
inlineoverridevirtual |
Reimplemented from GrSurface.
Reimplemented in GrMockTextureRenderTarget.
Definition at line 36 of file GrRenderTarget.h.
|
inlineoverridevirtual |
Reimplemented from GrSurface.
Reimplemented in GrMockTextureRenderTarget.
Definition at line 35 of file GrRenderTarget.h.
void GrRenderTarget::attachStencilAttachment | ( | sk_sp< GrAttachment > | stencil, |
bool | useMSAASurface | ||
) |
Definition at line 48 of file GrRenderTarget.cpp.
|
pure virtual |
Implemented in GrD3DRenderTarget, GrMockRenderTarget, GrMtlRenderTarget, GrVkRenderTarget, GrGLRenderTarget, and GrGLTextureRenderTarget.
|
privatepure virtual |
Implemented in GrMockRenderTarget.
|
pure virtual |
Implemented in GrD3DRenderTarget, GrGLRenderTarget, GrMockRenderTarget, GrMtlRenderTarget, and GrVkRenderTarget.
const skia_private::TArray< SkPoint > & GrRenderTarget::getSampleLocations | ( | ) |
Retrieves the per-pixel HW sample locations for this render target, and, as a by-product, the actual number of samples in use. (This may differ from fSampleCnt.) Sample locations are returned as 0..1 offsets relative to the top-left corner of the pixel.
int GrRenderTarget::getSamplePatternKey | ( | ) |
Returns a unique key that identifies this render target's sample pattern. (Must be multisampled.)
|
inline |
Definition at line 49 of file GrRenderTarget.h.
|
inline |
Definition at line 45 of file GrRenderTarget.h.
|
inline |
Returns the number of samples/pixel in the color buffer (One if non-MSAA).
Definition at line 41 of file GrRenderTarget.h.
int GrRenderTarget::numStencilBits | ( | bool | useMSAASurface | ) | const |
Definition at line 64 of file GrRenderTarget.cpp.
|
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 GrMtlRenderTarget, GrMtlTextureRenderTarget, GrVkRenderTarget, and GrVkTextureRenderTarget.
Definition at line 41 of file GrRenderTarget.cpp.
|
overrideprotectedvirtual |
Overridden to free GPU resources in the backend API.
Reimplemented from GrGpuResource.
Reimplemented in GrMtlRenderTarget, GrMtlTextureRenderTarget, GrVkRenderTarget, and GrVkTextureRenderTarget.
Definition at line 34 of file GrRenderTarget.cpp.
|
inline |
Definition at line 126 of file GrSurface.h.
|
inline |
Definition at line 121 of file GrSurface.h.