Chromium Code Reviews

Side by Side Diff: app/gfx/color_utils.h

Issue 173260: Some code style cleanup under src/app. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: comment line fix Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « app/gfx/canvas.h ('k') | app/gfx/color_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef APP_GFX_COLOR_UTILS_H_ 5 #ifndef APP_GFX_COLOR_UTILS_H_
6 #define APP_GFX_COLOR_UTILS_H_ 6 #define APP_GFX_COLOR_UTILS_H_
7 7
8 #include "third_party/skia/include/core/SkColor.h" 8 #include "third_party/skia/include/core/SkColor.h"
9 9
10 class SkBitmap; 10 class SkBitmap;
11 11
12 namespace color_utils { 12 namespace color_utils {
13 13
14 // Represents set of CIE XYZ tristimulus values. 14 // Represents set of CIE XYZ tristimulus values.
15 struct CIE_XYZ { 15 struct CIE_XYZ {
16 double X; 16 double X;
17 double Y; // luminance 17 double Y; // luminance
18 double Z; 18 double Z;
19 }; 19 };
20 20
21 // Represents a L*a*b* color value 21 // Represents a L*a*b* color value
22 struct LabColor { 22 struct LabColor {
23 int L; 23 int L;
24 int a; 24 int a;
25 int b; 25 int b;
26 }; 26 };
27 27
(...skipping 23 matching lines...)
51 // Builds a histogram based on the Y' of the Y'UV representation of 51 // Builds a histogram based on the Y' of the Y'UV representation of
52 // this image. 52 // this image.
53 void BuildLumaHistogram(SkBitmap* bitmap, int histogram[256]); 53 void BuildLumaHistogram(SkBitmap* bitmap, int histogram[256]);
54 54
55 // Create a color from a base color and a specific alpha value. 55 // Create a color from a base color and a specific alpha value.
56 SkColor SetColorAlpha(SkColor c, SkAlpha alpha); 56 SkColor SetColorAlpha(SkColor c, SkAlpha alpha);
57 57
58 // Gets a Windows system color as a SkColor 58 // Gets a Windows system color as a SkColor
59 SkColor GetSysSkColor(int which); 59 SkColor GetSysSkColor(int which);
60 60
61 } // namespace color_utils 61 } // namespace color_utils
62 62
63 #endif // #ifndef APP_GFX_COLOR_UTILS_H_ 63 #endif // APP_GFX_COLOR_UTILS_H_
OLDNEW
« no previous file with comments | « app/gfx/canvas.h ('k') | app/gfx/color_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine