| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 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 | 9 |
| 10 #ifndef SkColor_DEFINED | 10 #ifndef SkColor_DEFINED |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 /** Return a SkPMColor value from a SkColor value. This is done by multiplying t
he color | 154 /** Return a SkPMColor value from a SkColor value. This is done by multiplying t
he color |
| 155 components by the color's alpha, and by arranging the bytes in a configurati
on | 155 components by the color's alpha, and by arranging the bytes in a configurati
on |
| 156 dependent order, to match the format of kARGB32 bitmaps. | 156 dependent order, to match the format of kARGB32 bitmaps. |
| 157 */ | 157 */ |
| 158 SK_API SkPMColor SkPreMultiplyColor(SkColor c); | 158 SK_API SkPMColor SkPreMultiplyColor(SkColor c); |
| 159 | 159 |
| 160 /** Define a function pointer type for combining two premultiplied colors | 160 /** Define a function pointer type for combining two premultiplied colors |
| 161 */ | 161 */ |
| 162 typedef SkPMColor (*SkXfermodeProc)(SkPMColor src, SkPMColor dst); | 162 typedef SkPMColor (*SkXfermodeProc)(SkPMColor src, SkPMColor dst); |
| 163 | 163 |
| 164 /** Define a function pointer type for combining a premultiplied src color | |
| 165 and a 16bit device color. | |
| 166 */ | |
| 167 typedef uint16_t (*SkXfermodeProc16)(SkPMColor src, uint16_t dst); | |
| 168 | |
| 169 #endif | 164 #endif |
| OLD | NEW |