| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrProcOptInfo_DEFINED | 8 #ifndef GrProcOptInfo_DEFINED |
| 9 #define GrProcOptInfo_DEFINED | 9 #define GrProcOptInfo_DEFINED |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 , fInputColor(0) | 28 , fInputColor(0) |
| 29 , fRemoveVertexAttrib(false) | 29 , fRemoveVertexAttrib(false) |
| 30 , fReadsDst(false) {} | 30 , fReadsDst(false) {} |
| 31 | 31 |
| 32 void calcWithInitialValues(const GrFragmentStage*, int stageCount, GrColor s
tartColor, | 32 void calcWithInitialValues(const GrFragmentStage*, int stageCount, GrColor s
tartColor, |
| 33 GrColorComponentFlags flags, bool areCoverageStag
es, | 33 GrColorComponentFlags flags, bool areCoverageStag
es, |
| 34 const GrGeometryProcessor* gp = NULL); | 34 const GrGeometryProcessor* gp = NULL); |
| 35 | 35 |
| 36 bool isSolidWhite() const { return fInOut.isSolidWhite(); } | 36 bool isSolidWhite() const { return fInOut.isSolidWhite(); } |
| 37 bool isOpaque() const { return fInOut.isOpaque(); } | 37 bool isOpaque() const { return fInOut.isOpaque(); } |
| 38 bool isSingleComponent() const { return fInOut.isSingleComponent(); } |
| 38 | 39 |
| 39 GrColor color() const { return fInOut.color(); } | 40 GrColor color() const { return fInOut.color(); } |
| 40 uint8_t validFlags() const { return fInOut.validFlags(); } | 41 uint8_t validFlags() const { return fInOut.validFlags(); } |
| 41 | 42 |
| 42 /** | 43 /** |
| 43 * Returns the index of the first effective color stage. If an intermediate
stage doesn't read | 44 * Returns the index of the first effective color stage. If an intermediate
stage doesn't read |
| 44 * its input or has a known output, then we can ignore all earlier stages si
nce they will not | 45 * its input or has a known output, then we can ignore all earlier stages si
nce they will not |
| 45 * affect the final output. Thus the first effective stage index is the inde
x to the first stage | 46 * affect the final output. Thus the first effective stage index is the inde
x to the first stage |
| 46 * that will have an effect on the final output. | 47 * that will have an effect on the final output. |
| 47 * | 48 * |
| (...skipping 28 matching lines...) Expand all Loading... |
| 76 private: | 77 private: |
| 77 GrInvariantOutput fInOut; | 78 GrInvariantOutput fInOut; |
| 78 int fFirstEffectStageIndex; | 79 int fFirstEffectStageIndex; |
| 79 bool fInputColorIsUsed; | 80 bool fInputColorIsUsed; |
| 80 GrColor fInputColor; | 81 GrColor fInputColor; |
| 81 bool fRemoveVertexAttrib; | 82 bool fRemoveVertexAttrib; |
| 82 bool fReadsDst; | 83 bool fReadsDst; |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 #endif | 86 #endif |
| OLD | NEW |