Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: include/core/SkColor.h

Issue 1273613002: Revert of IWYU: 'core' target, files starting A-C. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkColorFilter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkColorFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698