21 std::string_view label,
23 :
INHERITED(gpu, dimensions, isProtected, label)
24 , fSampleCnt(sampleCount) {
26 fMSAAStencilAttachment = std::move(stencil);
28 fStencilAttachment = std::move(stencil);
35 fStencilAttachment =
nullptr;
36 fMSAAStencilAttachment =
nullptr;
42 fStencilAttachment =
nullptr;
43 fMSAAStencilAttachment =
nullptr;
49 auto stencilAttachment = (useMSAASurface) ? &GrRenderTarget::fMSAAStencilAttachment
50 : &GrRenderTarget::fStencilAttachment;
51 if (!stencil && !(this->*stencilAttachment)) {
61 this->*stencilAttachment = std::move(stencil);
int GrBackendFormatStencilBits(const GrBackendFormat &format)
GrAttachment * getStencilAttachment() const
void onAbandon() override
void onRelease() override
void attachStencilAttachment(sk_sp< GrAttachment > stencil, bool useMSAASurface)
GrRenderTarget(GrGpu *, const SkISize &, int sampleCount, GrProtected, std::string_view label, sk_sp< GrAttachment > stenicl=nullptr)
virtual bool completeStencilAttachment(GrAttachment *stencil, bool useMSAASurface)=0
~GrRenderTarget() override
int numStencilBits(bool useMSAASurface) const
virtual GrBackendFormat backendFormat() const =0
void onAbandon() override
void onRelease() override