diff options
author | egdaniel <egdaniel@google.com> | 2015-11-30 10:15:58 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-30 10:15:58 -0800 |
commit | 56cf6dcb6572f1d355af041c1ebf157b2b3d0165 (patch) | |
tree | b4bff299b4a41c8fc3cb02651cb8a252de50d3d5 /include | |
parent | b1514801cc519b36d5d064c6d70dfdd788474f5d (diff) |
Create a static instances of SrcOver XferProcessor
BUG=skia:
Review URL: https://codereview.chromium.org/1471293003
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrXferProcessor.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/include/gpu/GrXferProcessor.h b/include/gpu/GrXferProcessor.h index 0aa09d8780..ce26709d9a 100644 --- a/include/gpu/GrXferProcessor.h +++ b/include/gpu/GrXferProcessor.h @@ -145,7 +145,7 @@ public: OptFlags getOptimizations(const GrPipelineOptimizations& optimizations, bool doesStencilWrite, GrColor* overrideColor, - const GrCaps& caps); + const GrCaps& caps) const; /** * Returns whether this XP will require an Xfer barrier on the given rt. If true, outBarrierType @@ -199,11 +199,6 @@ public: bool dstReadUsesMixedSamples() const { return fDstReadUsesMixedSamples; } /** - * Returns whether or not the XP will look at coverage when doing its blending. - */ - bool readsCoverage() const { return fReadsCoverage; } - - /** * Returns whether or not this xferProcossor will set a secondary output to be used with dual * source blending. */ @@ -224,9 +219,6 @@ public: if (this->fWillReadDstColor != that.fWillReadDstColor) { return false; } - if (this->fReadsCoverage != that.fReadsCoverage) { - return false; - } if (this->fDstTexture.getTexture() != that.fDstTexture.getTexture()) { return false; } @@ -249,7 +241,7 @@ private: virtual OptFlags onGetOptimizations(const GrPipelineOptimizations& optimizations, bool doesStencilWrite, GrColor* overrideColor, - const GrCaps& caps) = 0; + const GrCaps& caps) const = 0; /** * Sets a unique key on the GrProcessorKeyBuilder that is directly associated with this xfer @@ -285,7 +277,6 @@ private: bool fWillReadDstColor; bool fDstReadUsesMixedSamples; - bool fReadsCoverage; SkIPoint fDstTextureOffset; GrTextureAccess fDstTexture; |