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

Unified Diff: gfx/color_utils.h

Issue 6254004: Move more web widgets painting from webkit to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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
Index: gfx/color_utils.h
diff --git a/gfx/color_utils.h b/gfx/color_utils.h
index b6eb2daf709447878f6e07dce1dcc0e8f6b17e4c..0e0e174b2c87ae7a3395bfb9fc0ae5ea47ec6a3b 100644
--- a/gfx/color_utils.h
+++ b/gfx/color_utils.h
@@ -26,6 +26,9 @@ double RelativeLuminance(SkColor color);
void SkColorToHSL(SkColor c, HSL* hsl);
SkColor HSLToSkColor(const HSL& hsl, SkAlpha alpha);
+// Return lightness adjusted color.
+SkColor BrightenColor(const HSL& hsl, SkAlpha alpha, double lightness_amount);
+
// HSL-Shift an SkColor. The shift values are in the range of 0-1, with the
// option to specify -1 for 'no change'. The shift values are defined as:
// hsl_shift[0] (hue): The absolute hue value - 0 and 1 map

Powered by Google App Engine
This is Rietveld 408576698