aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTarget.cpp
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2018-02-20 09:51:59 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-20 17:19:13 +0000
commit535ba8d2b862a364f7f8009d6e79cd41519f5643 (patch)
tree9a02a366b03b6172d94e01fea18138d755b01b87 /src/gpu/GrRenderTarget.cpp
parentcfac205c5e1d31588ba5da2c7cb551f0d067de09 (diff)
Drop unused support for MSAA sample locations
Bug: skia: Change-Id: I96f0c25732d79c5881e400b121e81c5696a747a6 Reviewed-on: https://skia-review.googlesource.com/107441 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrRenderTarget.cpp')
-rw-r--r--src/gpu/GrRenderTarget.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp
index 36fa4ddf1b..1b8d05e581 100644
--- a/src/gpu/GrRenderTarget.cpp
+++ b/src/gpu/GrRenderTarget.cpp
@@ -24,7 +24,6 @@ GrRenderTarget::GrRenderTarget(GrGpu* gpu, const GrSurfaceDesc& desc,
: INHERITED(gpu, desc)
, fSampleCnt(desc.fSampleCnt)
, fStencilAttachment(stencil)
- , fMultisampleSpecsID(0)
, fFlags(flags) {
SkASSERT(desc.fFlags & kRenderTarget_GrSurfaceFlag);
SkASSERT(!(fFlags & GrRenderTargetFlags::kMixedSampled) || fSampleCnt > 1);
@@ -93,17 +92,3 @@ int GrRenderTargetPriv::numStencilBits() const {
SkASSERT(this->getStencilAttachment());
return this->getStencilAttachment()->bits();
}
-
-const GrGpu::MultisampleSpecs&
-GrRenderTargetPriv::getMultisampleSpecs(const GrPipeline& pipeline) const {
- SkASSERT(fRenderTarget == pipeline.renderTarget()); // TODO: remove RT from pipeline.
- GrGpu* gpu = fRenderTarget->getGpu();
- if (auto id = fRenderTarget->fMultisampleSpecsID) {
- SkASSERT(gpu->queryMultisampleSpecs(pipeline).fUniqueID == id);
- return gpu->getMultisampleSpecs(id);
- }
- const GrGpu::MultisampleSpecs& specs = gpu->queryMultisampleSpecs(pipeline);
- fRenderTarget->fMultisampleSpecsID = specs.fUniqueID;
- return specs;
-}
-