Index: src/gpu/GrRenderTarget.cpp |
diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp |
index ebbfae9b95f07fa722e7617bc2ecaf79cc6b262d..6a9d48997ee5b2c57f8ee0598d944feb8be8c41c 100644 |
--- a/src/gpu/GrRenderTarget.cpp |
+++ b/src/gpu/GrRenderTarget.cpp |
@@ -105,6 +105,10 @@ bool GrRenderTargetPriv::attachStencilAttachment(GrStencilAttachment* stencil) { |
return true; |
} |
+int GrRenderTargetPriv::numStencilBits() const { |
+ return fRenderTarget->fStencilAttachment ? fRenderTarget->fStencilAttachment->bits() : 0; |
+} |
+ |
const GrGpu::MultisampleSpecs& |
GrRenderTargetPriv::getMultisampleSpecs(const GrStencilSettings& stencil) const { |
return fRenderTarget->getGpu()->getMultisampleSpecs(fRenderTarget, stencil); |