| 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 "GrColor.h" | 10 #include "GrColor.h" |
| 11 #include "GrXferProcessor.h" |
| 11 | 12 |
| 12 #ifndef GrBlend_DEFINED | 13 #ifndef GrBlend_DEFINED |
| 13 #define GrBlend_DEFINED | 14 #define GrBlend_DEFINED |
| 14 | 15 |
| 15 static inline bool GrBlendCoeffRefsSrc(GrBlendCoeff coeff) { | 16 static inline bool GrBlendCoeffRefsSrc(GrBlendCoeff coeff) { |
| 16 switch (coeff) { | 17 switch (coeff) { |
| 17 case kSC_GrBlendCoeff: | 18 case kSC_GrBlendCoeff: |
| 18 case kISC_GrBlendCoeff: | 19 case kISC_GrBlendCoeff: |
| 19 case kSA_GrBlendCoeff: | 20 case kSA_GrBlendCoeff: |
| 20 case kISA_GrBlendCoeff: | 21 case kISA_GrBlendCoeff: |
| (...skipping 15 matching lines...) Expand all Loading... |
| 36 } | 37 } |
| 37 } | 38 } |
| 38 | 39 |
| 39 GrColor GrSimplifyBlend(GrBlendCoeff* srcCoeff, | 40 GrColor GrSimplifyBlend(GrBlendCoeff* srcCoeff, |
| 40 GrBlendCoeff* dstCoeff, | 41 GrBlendCoeff* dstCoeff, |
| 41 GrColor srcColor, uint32_t srcCompFlags, | 42 GrColor srcColor, uint32_t srcCompFlags, |
| 42 GrColor dstColor, uint32_t dstCompFlags, | 43 GrColor dstColor, uint32_t dstCompFlags, |
| 43 GrColor constantColor); | 44 GrColor constantColor); |
| 44 | 45 |
| 45 #endif | 46 #endif |
| OLD | NEW |