| 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 "GrTypes.h" | 9 #include "GrTypes.h" |
| 10 #include "../private/SkTLogic.h" | 10 #include "../../src/utils/SkTLogic.h" |
| 11 | 11 |
| 12 #ifndef GrBlend_DEFINED | 12 #ifndef GrBlend_DEFINED |
| 13 #define GrBlend_DEFINED | 13 #define GrBlend_DEFINED |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * Equations for alpha-blending. | 16 * Equations for alpha-blending. |
| 17 */ | 17 */ |
| 18 enum GrBlendEquation { | 18 enum GrBlendEquation { |
| 19 // Basic blend equations. | 19 // Basic blend equations. |
| 20 kAdd_GrBlendEquation, //<! Cs*S + Cd*D | 20 kAdd_GrBlendEquation, //<! Cs*S + Cd*D |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 kReverseSubtract_GrBlendEqua
tion == Equation) && | 207 kReverseSubtract_GrBlendEqua
tion == Equation) && |
| 208 !GR_BLEND_COEFF_REFS_SRC(SrcC
oeff) && | 208 !GR_BLEND_COEFF_REFS_SRC(SrcC
oeff) && |
| 209 (kOne_GrBlendCoeff == DstCoef
f || | 209 (kOne_GrBlendCoeff == DstCoef
f || |
| 210 kISC_GrBlendCoeff == DstCoef
f || | 210 kISC_GrBlendCoeff == DstCoef
f || |
| 211 kISA_GrBlendCoeff == DstCoef
f))> {}; | 211 kISA_GrBlendCoeff == DstCoef
f))> {}; |
| 212 | 212 |
| 213 #define GR_BLEND_CAN_TWEAK_ALPHA_FOR_COVERAGE(EQUATION, SRC_COEFF, DST_COEFF) \ | 213 #define GR_BLEND_CAN_TWEAK_ALPHA_FOR_COVERAGE(EQUATION, SRC_COEFF, DST_COEFF) \ |
| 214 GrTBlendCanTweakAlphaForCoverage<EQUATION, SRC_COEFF, DST_COEFF>::value | 214 GrTBlendCanTweakAlphaForCoverage<EQUATION, SRC_COEFF, DST_COEFF>::value |
| 215 | 215 |
| 216 #endif | 216 #endif |
| OLD | NEW |