| 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 GrInvariantOutput_DEFINED | 8 #ifndef GrInvariantOutput_DEFINED |
| 9 #define GrInvariantOutput_DEFINED | 9 #define GrInvariantOutput_DEFINED |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 fValidFlags = kRGBA_GrColorComponentFlags; | 22 fValidFlags = kRGBA_GrColorComponentFlags; |
| 23 fIsSingleComponent = false; | 23 fIsSingleComponent = false; |
| 24 } | 24 } |
| 25 | 25 |
| 26 void setUnknownFourComponents() { | 26 void setUnknownFourComponents() { |
| 27 fValidFlags = 0; | 27 fValidFlags = 0; |
| 28 fIsSingleComponent = false; | 28 fIsSingleComponent = false; |
| 29 } | 29 } |
| 30 | 30 |
| 31 void setUnknownOpaqueFourComponents() { | 31 void setUnknownOpaqueFourComponents() { |
| 32 fColor = 0xff << GrColor_SHIFT_A; | 32 fColor = 0xffU << GrColor_SHIFT_A; |
| 33 fValidFlags = kA_GrColorComponentFlag; | 33 fValidFlags = kA_GrColorComponentFlag; |
| 34 fIsSingleComponent = false; | 34 fIsSingleComponent = false; |
| 35 } | 35 } |
| 36 | 36 |
| 37 void setKnownSingleComponent(uint8_t alpha) { | 37 void setKnownSingleComponent(uint8_t alpha) { |
| 38 fColor = GrColorPackRGBA(alpha, alpha, alpha, alpha); | 38 fColor = GrColorPackRGBA(alpha, alpha, alpha, alpha); |
| 39 fValidFlags = kRGBA_GrColorComponentFlags; | 39 fValidFlags = kRGBA_GrColorComponentFlags; |
| 40 fIsSingleComponent = true; | 40 fIsSingleComponent = true; |
| 41 } | 41 } |
| 42 | 42 |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 uint32_t fValidFlags; | 325 uint32_t fValidFlags; |
| 326 bool fIsSingleComponent; | 326 bool fIsSingleComponent; |
| 327 bool fNonMulStageFound; | 327 bool fNonMulStageFound; |
| 328 bool fWillUseInputColor; | 328 bool fWillUseInputColor; |
| 329 bool fIsLCDCoverage; // Temorary data member until texture pixel configs are
updated | 329 bool fIsLCDCoverage; // Temorary data member until texture pixel configs are
updated |
| 330 | 330 |
| 331 }; | 331 }; |
| 332 | 332 |
| 333 #endif | 333 #endif |
| 334 | 334 |
| OLD | NEW |