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

Unified Diff: chrome/common/gfx/color_utils.cc

Issue 40226: Fix files with lines > 80 cols. Part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/gfx/chrome_font_skia.cc ('k') | chrome/common/gfx/text_elider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/gfx/color_utils.cc
===================================================================
--- chrome/common/gfx/color_utils.cc (revision 11111)
+++ chrome/common/gfx/color_utils.cc (working copy)
@@ -35,7 +35,8 @@
static double CIEConvertNonLinear(uint8 color_component) {
double color_component_d = static_cast<double>(color_component) / 255.0;
if (color_component_d > 0.04045) {
- double base = (color_component_d + kCIEConversionAlpha) / (1 + kCIEConversionAlpha);
+ double base = (color_component_d + kCIEConversionAlpha) /
+ (1 + kCIEConversionAlpha);
return pow(base, kCIEConversionGamma);
} else {
return color_component_d / 12.92;
@@ -86,7 +87,9 @@
if (component <= 0.0031308) {
result = 12.92 * component;
} else {
- result = (1 + kCIEConversionAlpha) * pow(component, (static_cast<double>(1) / 2.4)) - kCIEConversionAlpha;
+ result = (1 + kCIEConversionAlpha) *
+ pow(component, (static_cast<double>(1) / 2.4)) -
+ kCIEConversionAlpha;
}
return std::min(static_cast<uint8>(255), static_cast<uint8>(result * 255));
}
« no previous file with comments | « chrome/common/gfx/chrome_font_skia.cc ('k') | chrome/common/gfx/text_elider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698