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