| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "GrPaint.h" | 9 #include "GrPaint.h" |
| 10 | 10 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // should have been false. | 97 // should have been false. |
| 98 case kSC_GrBlendCoeff: | 98 case kSC_GrBlendCoeff: |
| 99 case kISC_GrBlendCoeff: | 99 case kISC_GrBlendCoeff: |
| 100 case kDC_GrBlendCoeff: | 100 case kDC_GrBlendCoeff: |
| 101 case kIDC_GrBlendCoeff: | 101 case kIDC_GrBlendCoeff: |
| 102 case kSA_GrBlendCoeff: | 102 case kSA_GrBlendCoeff: |
| 103 case kISA_GrBlendCoeff: | 103 case kISA_GrBlendCoeff: |
| 104 case kDA_GrBlendCoeff: | 104 case kDA_GrBlendCoeff: |
| 105 case kIDA_GrBlendCoeff: | 105 case kIDA_GrBlendCoeff: |
| 106 default: | 106 default: |
| 107 GrCrash("srcCoeff should not refer to src or dst."); | 107 SkFAIL("srcCoeff should not refer to src or dst."); |
| 108 break; | 108 break; |
| 109 | 109 |
| 110 // TODO: update this once GrPaint actually has a const color. | 110 // TODO: update this once GrPaint actually has a const color. |
| 111 case kConstC_GrBlendCoeff: | 111 case kConstC_GrBlendCoeff: |
| 112 case kIConstC_GrBlendCoeff: | 112 case kIConstC_GrBlendCoeff: |
| 113 case kConstA_GrBlendCoeff: | 113 case kConstA_GrBlendCoeff: |
| 114 case kIConstA_GrBlendCoeff: | 114 case kIConstA_GrBlendCoeff: |
| 115 *solidColorKnownComponents = 0; | 115 *solidColorKnownComponents = 0; |
| 116 break; | 116 break; |
| 117 } | 117 } |
| 118 } else { | 118 } else { |
| 119 solidColorKnownComponents = 0; | 119 solidColorKnownComponents = 0; |
| 120 } | 120 } |
| 121 } | 121 } |
| 122 return opaque; | 122 return opaque; |
| 123 } | 123 } |
| OLD | NEW |