Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: include/gpu/GrXferProcessor.h

Issue 1471293003: Create a static instances of SrcOver XferProcessor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix Build Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/effects/SkArithmeticMode_gpu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrXferProcessor.h
diff --git a/include/gpu/GrXferProcessor.h b/include/gpu/GrXferProcessor.h
index 0aa09d8780faf00d7abd223c2fcc5e516e2bc2f9..ce26709d9ac16432d1dfe0c759777ac2f867e11e 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;
« no previous file with comments | « no previous file | src/effects/SkArithmeticMode_gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698