Index: src/gpu/GrProcOptInfo.h |
diff --git a/src/gpu/GrProcOptInfo.h b/src/gpu/GrProcOptInfo.h |
index bb657d27c0cfa12b3bd264ca8e7587eefb3c1e2c..ceccf323c57908dae6b728724b8c171f0db61083 100644 |
--- a/src/gpu/GrProcOptInfo.h |
+++ b/src/gpu/GrProcOptInfo.h |
@@ -37,6 +37,12 @@ public: |
bool isOpaque() const { return fInOut.isOpaque(); } |
bool isSingleComponent() const { return fInOut.isSingleComponent(); } |
+ // TODO: Once texture pixel configs quaries are updated, we no longer need this function. |
+ // For now this function will correctly tell us if we are using LCD text or not and should only |
+ // be called when looking at the coverage output. |
+ bool isFourChannelOutput() const { return !fInOut.isSingleComponent() && |
+ fInOut.isLCDCoverage(); } |
+ |
GrColor color() const { return fInOut.color(); } |
uint8_t validFlags() const { return fInOut.validFlags(); } |