| 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 27 matching lines...) Expand all Loading... |
| 38 void calcCoverageWithBatch(const GrBatch*, const GrFragmentStage*, int stage
count); | 38 void calcCoverageWithBatch(const GrBatch*, const GrFragmentStage*, int stage
count); |
| 39 | 39 |
| 40 // TODO delete these when batch is everywhere | 40 // TODO delete these when batch is everywhere |
| 41 void calcColorWithPrimProc(const GrPrimitiveProcessor*, const GrFragmentStag
e*, int stagecount); | 41 void calcColorWithPrimProc(const GrPrimitiveProcessor*, const GrFragmentStag
e*, int stagecount); |
| 42 void calcCoverageWithPrimProc(const GrPrimitiveProcessor*, const GrFragmentS
tage*, | 42 void calcCoverageWithPrimProc(const GrPrimitiveProcessor*, const GrFragmentS
tage*, |
| 43 int stagecount); | 43 int stagecount); |
| 44 | 44 |
| 45 bool isSolidWhite() const { return fInOut.isSolidWhite(); } | 45 bool isSolidWhite() const { return fInOut.isSolidWhite(); } |
| 46 bool isOpaque() const { return fInOut.isOpaque(); } | 46 bool isOpaque() const { return fInOut.isOpaque(); } |
| 47 bool isSingleComponent() const { return fInOut.isSingleComponent(); } | 47 bool isSingleComponent() const { return fInOut.isSingleComponent(); } |
| 48 bool allStagesMultiplyInput() const { return fInOut.allStagesMulInput(); } |
| 48 | 49 |
| 49 // TODO: Once texture pixel configs quaries are updated, we no longer need t
his function. | 50 // TODO: Once texture pixel configs quaries are updated, we no longer need t
his function. |
| 50 // For now this function will correctly tell us if we are using LCD text or
not and should only | 51 // For now this function will correctly tell us if we are using LCD text or
not and should only |
| 51 // be called when looking at the coverage output. | 52 // be called when looking at the coverage output. |
| 52 bool isFourChannelOutput() const { return !fInOut.isSingleComponent() && | 53 bool isFourChannelOutput() const { return !fInOut.isSingleComponent() && |
| 53 fInOut.isLCDCoverage(); } | 54 fInOut.isLCDCoverage(); } |
| 54 | 55 |
| 55 GrColor color() const { return fInOut.color(); } | 56 GrColor color() const { return fInOut.color(); } |
| 56 uint8_t validFlags() const { return fInOut.validFlags(); } | 57 uint8_t validFlags() const { return fInOut.validFlags(); } |
| 57 | 58 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 87 void internalCalc(const GrFragmentStage*, int stagecount, bool initWillReadF
ragPosition); | 88 void internalCalc(const GrFragmentStage*, int stagecount, bool initWillReadF
ragPosition); |
| 88 | 89 |
| 89 GrInvariantOutput fInOut; | 90 GrInvariantOutput fInOut; |
| 90 int fFirstEffectStageIndex; | 91 int fFirstEffectStageIndex; |
| 91 bool fInputColorIsUsed; | 92 bool fInputColorIsUsed; |
| 92 GrColor fInputColor; | 93 GrColor fInputColor; |
| 93 bool fReadsFragPosition; | 94 bool fReadsFragPosition; |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 #endif | 97 #endif |
| OLD | NEW |