aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2015-11-30 10:15:58 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-30 10:15:58 -0800
commit56cf6dcb6572f1d355af041c1ebf157b2b3d0165 (patch)
treeb4bff299b4a41c8fc3cb02651cb8a252de50d3d5 /include/gpu
parentb1514801cc519b36d5d064c6d70dfdd788474f5d (diff)
Create a static instances of SrcOver XferProcessor
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrXferProcessor.h13
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;