Index: src/gpu/GrRenderTarget.cpp |
diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp |
index e547021227724d03e11ab0bb4c9053989eb8288e..51282b47ee92430f50bd797c08e8cadc65b977f3 100644 |
--- a/src/gpu/GrRenderTarget.cpp |
+++ b/src/gpu/GrRenderTarget.cpp |
@@ -105,3 +105,17 @@ bool GrRenderTargetPriv::attachStencilAttachment(GrStencilAttachment* stencil) { |
} |
return true; |
} |
+ |
+int GrRenderTargetPriv::getEffectiveSampleCount(const GrStencilSettings& stencil) const { |
+ return fRenderTarget->getGpu()->getMultisampleSpecs(fRenderTarget, stencil).fEffectiveSampleCnt; |
+} |
+ |
+uint16_t GrRenderTargetPriv::getSamplePatternID(const GrStencilSettings& stencil) const { |
+ SkASSERT(fRenderTarget->getGpu()->caps()->sampleLocationsSupport()); |
+ return fRenderTarget->getGpu()->getMultisampleSpecs(fRenderTarget, stencil).fSamplePatternID; |
+} |
+ |
+const SkPoint* GrRenderTargetPriv::getSampleLocations(const GrStencilSettings& stencil) const { |
+ SkASSERT(fRenderTarget->getGpu()->caps()->sampleLocationsSupport()); |
+ return fRenderTarget->getGpu()->getMultisampleSpecs(fRenderTarget, stencil).fSampleLocations; |
+} |