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

Side by Side Diff: src/core/SkColor.cpp

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 | « src/core/SkCanvas.cpp ('k') | src/core/SkColorFilter.cpp » ('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 #include "SkColor.h" 10 #include "SkColor.h"
9 #include "SkColorPriv.h" 11 #include "SkColorPriv.h"
10 #include "SkFixed.h"
11 12
12 SkPMColor SkPreMultiplyARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { 13 SkPMColor SkPreMultiplyARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) {
13 return SkPremultiplyARGBInline(a, r, g, b); 14 return SkPremultiplyARGBInline(a, r, g, b);
14 } 15 }
15 16
16 SkPMColor SkPreMultiplyColor(SkColor c) { 17 SkPMColor SkPreMultiplyColor(SkColor c) {
17 return SkPremultiplyARGBInline(SkColorGetA(c), SkColorGetR(c), 18 return SkPremultiplyARGBInline(SkColorGetA(c), SkColorGetR(c),
18 SkColorGetG(c), SkColorGetB(c)); 19 SkColorGetG(c), SkColorGetB(c));
19 } 20 }
20 21
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 switch (hx >> 16) { 104 switch (hx >> 16) {
104 case 0: r = v; g = t; b = p; break; 105 case 0: r = v; g = t; b = p; break;
105 case 1: r = q; g = v; b = p; break; 106 case 1: r = q; g = v; b = p; break;
106 case 2: r = p; g = v; b = t; break; 107 case 2: r = p; g = v; b = t; break;
107 case 3: r = p; g = q; b = v; break; 108 case 3: r = p; g = q; b = v; break;
108 case 4: r = t; g = p; b = v; break; 109 case 4: r = t; g = p; b = v; break;
109 default: r = v; g = p; b = q; break; 110 default: r = v; g = p; b = q; break;
110 } 111 }
111 return SkColorSetARGB(a, r, g, b); 112 return SkColorSetARGB(a, r, g, b);
112 } 113 }
OLDNEW
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | src/core/SkColorFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698