OLD | NEW |
| 1 |
1 /* | 2 /* |
2 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
3 * | 4 * |
4 * 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 |
5 * found in the LICENSE file. | 6 * found in the LICENSE file. |
6 */ | 7 */ |
7 | 8 |
| 9 |
8 #ifndef SkColor_DEFINED | 10 #ifndef SkColor_DEFINED |
9 #define SkColor_DEFINED | 11 #define SkColor_DEFINED |
10 | 12 |
11 #include "SkScalar.h" | 13 #include "SkScalar.h" |
12 #include "SkTypes.h" | |
13 | 14 |
14 /** \file SkColor.h | 15 /** \file SkColor.h |
15 | 16 |
16 Types and macros for colors | 17 Types and macros for colors |
17 */ | 18 */ |
18 | 19 |
19 /** 8-bit type for an alpha value. 0xFF is 100% opaque, 0x00 is 100% transparent
. | 20 /** 8-bit type for an alpha value. 0xFF is 100% opaque, 0x00 is 100% transparent
. |
20 */ | 21 */ |
21 typedef uint8_t SkAlpha; | 22 typedef uint8_t SkAlpha; |
22 /** 32 bit ARGB color value, not premultiplied. The color components are always
in | 23 /** 32 bit ARGB color value, not premultiplied. The color components are always
in |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 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 |
155 dependent order, to match the format of kARGB32 bitmaps. | 156 dependent order, to match the format of kARGB32 bitmaps. |
156 */ | 157 */ |
157 SK_API SkPMColor SkPreMultiplyColor(SkColor c); | 158 SK_API SkPMColor SkPreMultiplyColor(SkColor c); |
158 | 159 |
159 /** Define a function pointer type for combining two premultiplied colors | 160 /** Define a function pointer type for combining two premultiplied colors |
160 */ | 161 */ |
161 typedef SkPMColor (*SkXfermodeProc)(SkPMColor src, SkPMColor dst); | 162 typedef SkPMColor (*SkXfermodeProc)(SkPMColor src, SkPMColor dst); |
162 | 163 |
163 #endif | 164 #endif |
OLD | NEW |