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/GrGpu.h | |
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/GrGpu.h')
-rw-r--r-- | src/gpu/GrGpu.h | 46 |
1 files changed, 3 insertions, 43 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h index 87ddb76910..f11799f070 100644 --- a/src/gpu/GrGpu.h +++ b/src/gpu/GrGpu.h @@ -321,33 +321,6 @@ public: const SkIRect& srcRect, const SkIPoint& dstPoint); - struct MultisampleSpecs { - MultisampleSpecs(uint8_t uniqueID, int effectiveSampleCnt, const SkPoint* locations) - : fUniqueID(uniqueID), - fEffectiveSampleCnt(effectiveSampleCnt), - fSampleLocations(locations) {} - - // Nonzero ID that uniquely identifies these multisample specs. - uint8_t fUniqueID; - // The actual number of samples the GPU will run. NOTE: this value can be greater than the - // the render target's sample count. - int fEffectiveSampleCnt; - // If sample locations are supported, points to the subpixel locations at which the GPU will - // sample. Pixel center is at (.5, .5), and (0, 0) indicates the top left corner. - const SkPoint* fSampleLocations; - }; - - // Finds a render target's multisample specs. The pipeline is only needed in case we need to - // flush the draw state prior to querying multisample info. The pipeline is not expected to - // affect the multisample information itself. - const MultisampleSpecs& queryMultisampleSpecs(const GrPipeline&); - - // Finds the multisample specs with a given unique id. - const MultisampleSpecs& getMultisampleSpecs(uint8_t uniqueID) { - SkASSERT(uniqueID > 0 && uniqueID < fMultisampleSpecs.count()); - return fMultisampleSpecs[uniqueID]; - } - // Creates a GrGpuRTCommandBuffer which GrOpLists send draw commands to instead of directly // to the Gpu object. virtual GrGpuRTCommandBuffer* createCommandBuffer( @@ -594,11 +567,6 @@ private: GrSurface* src, GrSurfaceOrigin srcOrigin, const SkIRect& srcRect, const SkIPoint& dstPoint) = 0; - // overridden by backend specific derived class to perform the multisample queries - virtual void onQueryMultisampleSpecs(GrRenderTarget*, GrSurfaceOrigin rtOrigin, - const GrStencilSettings&, - int* effectiveSampleCnt, SamplePattern*) = 0; - virtual void onFinishFlush(bool insertedSemaphores) = 0; virtual void onDumpJSON(SkJSONWriter*) const {} @@ -609,18 +577,10 @@ private: ++fResetTimestamp; } - struct SamplePatternComparator { - bool operator()(const SamplePattern&, const SamplePattern&) const; - }; - - typedef std::map<SamplePattern, uint8_t, SamplePatternComparator> MultisampleSpecsIdMap; - - ResetTimestamp fResetTimestamp; - uint32_t fResetBits; - MultisampleSpecsIdMap fMultisampleSpecsIdMap; - SkSTArray<1, MultisampleSpecs, true> fMultisampleSpecs; + ResetTimestamp fResetTimestamp; + uint32_t fResetBits; // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. - GrContext* fContext; + GrContext* fContext; friend class GrPathRendering; typedef SkRefCnt INHERITED; |