OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
3 * | 3 * |
4 * 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 |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkColor_DEFINED | 8 #ifndef SkColor_DEFINED |
9 #define SkColor_DEFINED | 9 #define SkColor_DEFINED |
10 | 10 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
153 /** Return a SkPMColor value from a SkColor value. This is done by multiplying t he color | 153 /** Return a SkPMColor value from a SkColor value. This is done by multiplying t he color |
154 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 |
155 dependent order, to match the format of kARGB32 bitmaps. | 155 dependent order, to match the format of kARGB32 bitmaps. |
156 */ | 156 */ |
157 SK_API SkPMColor SkPreMultiplyColor(SkColor c); | 157 SK_API SkPMColor SkPreMultiplyColor(SkColor c); |
158 | 158 |
159 /** Define a function pointer type for combining two premultiplied colors | 159 /** Define a function pointer type for combining two premultiplied colors |
160 */ | 160 */ |
161 typedef SkPMColor (*SkXfermodeProc)(SkPMColor src, SkPMColor dst); | 161 typedef SkPMColor (*SkXfermodeProc)(SkPMColor src, SkPMColor dst); |
162 | 162 |
163 //////////////////////////////////////////////////////////////////////////////// /////////////////// | |
164 | |
165 struct SkPM4f { | |
166 float fVec[4]; | |
mtklein
2016/01/21 17:52:36
To be super-sweet,
struct SK_ATTRIBUTE(aligned(16
| |
167 }; | |
168 | |
163 #endif | 169 #endif |
OLD | NEW |