diff options
author | Chris Dalton <csmartdalton@google.com> | 2018-02-20 09:51:59 -0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-20 17:19:13 +0000 |
commit | 535ba8d2b862a364f7f8009d6e79cd41519f5643 (patch) | |
tree | 9a02a366b03b6172d94e01fea18138d755b01b87 /src/gpu/GrRenderTarget.cpp | |
parent | cfac205c5e1d31588ba5da2c7cb551f0d067de09 (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.cpp | 15 |
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; -} - |