8#ifndef GrRenderTarget_DEFINED
9#define GrRenderTarget_DEFINED
46 return (useMSAASurface) ? fMSAAStencilAttachment.
get() : fStencilAttachment.
get();
78 std::string_view label,
GrAttachment * getStencilAttachment() const
GrRenderTarget * asRenderTarget() override
void onAbandon() override
void onRelease() override
virtual GrBackendRenderTarget getBackendRenderTarget() const =0
const skia_private::TArray< SkPoint > & getSampleLocations()
void attachStencilAttachment(sk_sp< GrAttachment > stencil, bool useMSAASurface)
virtual bool alwaysClearStencil() const
int getSamplePatternKey()
GrAttachment * getStencilAttachment(bool useMSAASurface) const
GrRenderTarget(GrGpu *, const SkISize &, int sampleCount, GrProtected, std::string_view label, sk_sp< GrAttachment > stenicl=nullptr)
virtual bool canAttemptStencilAttachment(bool useMSAASurface) const =0
virtual bool completeStencilAttachment(GrAttachment *stencil, bool useMSAASurface)=0
~GrRenderTarget() override
int numStencilBits(bool useMSAASurface) const
const GrRenderTarget * asRenderTarget() const override
void setRequiresManualMSAAResolve()
GrSurface(GrGpu *gpu, const SkISize &dimensions, skgpu::Protected isProtected, std::string_view label)
bool requiresManualMSAAResolve() const