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

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

Issue 1265033002: IWYU: 'core' target, files starting A-C. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase (a file was deleted). 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
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
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
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