summaryrefslogtreecommitdiffstats
path: root/skia/ext/skia_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'skia/ext/skia_utils.h')
-rw-r--r--skia/ext/skia_utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/skia/ext/skia_utils.h b/skia/ext/skia_utils.h
index 4ab40f3..98fa1b0 100644
--- a/skia/ext/skia_utils.h
+++ b/skia/ext/skia_utils.h
@@ -21,6 +21,12 @@ SkShader* CreateGradientShader(int start_point,
SkColor start_color,
SkColor end_color);
+// Convert a premultiplied SkColor to a HSL value.
+void SkColorToHSL(SkPMColor c, float hsl[3]);
+
+// Convert a HSL color to a premultiplied SkColor.
+SkPMColor HSLToSKColor(U8CPU alpha, float hsl[3]);
+
} // namespace skia
#endif // SKIA_EXT_SKIA_UTILS_H_