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

Unified Diff: skia/ext/skia_utils.h

Issue 79082: Add bitmap manipulation functions in advance of themes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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: skia/ext/skia_utils.h
===================================================================
--- skia/ext/skia_utils.h (revision 13970)
+++ skia/ext/skia_utils.h (working copy)
@@ -21,6 +21,12 @@
SkColor start_color,
SkColor end_color);
+// Convert a premultiplied SkColor to a HSL value.
+void SkColorToHSL(SkColor c, float hsl[3]);
brettw 2009/04/28 02:49:43 Since the colors are premultiplied, you should use
+
+// Convert a HSL color to a premultiplied SkColor.
+SkColor HSLToSKColor(U8CPU alpha, float hsl[3]);
+
} // namespace skia
#endif // SKIA_EXT_SKIA_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698