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

Unified Diff: include/gpu/GrInvariantOutput.h

Issue 786293002: Rename CustomCoordTextureEffect to GrBitmapTextGeoProc. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Review updates Created 6 years 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 | « gyp/gpu.gypi ('k') | src/gpu/GrBitmapTextContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrInvariantOutput.h
diff --git a/include/gpu/GrInvariantOutput.h b/include/gpu/GrInvariantOutput.h
index 4f61999dcda72fd0e56db7589b784888cd35c74a..1d3eda1b2cd7f437dcc0345b2a9533e658871465 100644
--- a/include/gpu/GrInvariantOutput.h
+++ b/include/gpu/GrInvariantOutput.h
@@ -13,8 +13,12 @@
class GrInvariantOutput {
public:
GrInvariantOutput(GrColor color, GrColorComponentFlags flags, bool isSingleComponent)
- : fColor(color), fValidFlags(flags), fIsSingleComponent(isSingleComponent),
- fNonMulStageFound(false), fWillUseInputColor(true) {}
+ : fColor(color)
+ , fValidFlags(flags)
+ , fIsSingleComponent(isSingleComponent)
+ , fNonMulStageFound(false)
+ , fWillUseInputColor(true)
+ , fIsLCDCoverage(false) {}
virtual ~GrInvariantOutput() {}
@@ -92,6 +96,12 @@ public:
}
}
+ // Temporary setter to handle LCD text correctly until we improve texture pixel config queries
+ // and thus can rely solely on number of coverage components for RGA vs single channel coverage.
+ void setUsingLCDCoverage() {
+ fIsLCDCoverage = true;
+ }
+
GrColor color() const { return fColor; }
uint8_t validFlags() const { return fValidFlags; }
@@ -101,13 +111,6 @@ public:
*/
SkDEBUGCODE(void validate() const;)
-protected:
- GrColor fColor;
- uint32_t fValidFlags;
- bool fIsSingleComponent;
- bool fNonMulStageFound;
- bool fWillUseInputColor;
-
private:
friend class GrProcOptInfo;
@@ -149,11 +152,21 @@ private:
void resetNonMulStageFound() { fNonMulStageFound = false; }
+ bool isLCDCoverage() const { return fIsLCDCoverage; }
+
SkDEBUGCODE(bool colorComponentsAllEqual() const;)
/**
* If alpha is valid, check that any valid R,G,B values are <= A
*/
SkDEBUGCODE(bool validPreMulColor() const;)
+
+ GrColor fColor;
+ uint32_t fValidFlags;
+ bool fIsSingleComponent;
+ bool fNonMulStageFound;
+ bool fWillUseInputColor;
+ bool fIsLCDCoverage; // Temorary data member until texture pixel configs are updated
+
};
#endif
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/GrBitmapTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698