Lines Matching refs:useMSAASurface
591 static int num_stencil_samples(const GrRenderTarget* rt, bool useMSAASurface, const GrCaps& caps) {
593 if (numSamples == 1 && useMSAASurface) { // Are we using dynamic msaa?
600 bool GrResourceProvider::attachStencilAttachment(GrRenderTarget* rt, bool useMSAASurface) {
604 GrAttachment* stencil = rt->getStencilAttachment(useMSAASurface);
606 SkASSERT(stencil->numSamples() == num_stencil_samples(rt, useMSAASurface, *this->caps()));
610 if (!rt->wasDestroyed() && rt->canAttemptStencilAttachment(useMSAASurface)) {
624 int numStencilSamples = num_stencil_samples(rt, useMSAASurface, *this->caps());
639 rt->attachStencilAttachment(std::move(keyedStencil), useMSAASurface);
641 stencil = rt->getStencilAttachment(useMSAASurface);
643 stencil->numSamples() == num_stencil_samples(rt, useMSAASurface, *this->caps()));