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.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/skia/ext/skia_utils.h b/skia/ext/skia_utils.h
index f9707ab..769d9d4 100644
--- a/skia/ext/skia_utils.h
+++ b/skia/ext/skia_utils.h
@@ -27,15 +27,14 @@ SkShader* CreateGradientShader(int start_point,
SkColor start_color,
SkColor end_color);
-// Convert a premultiplied SkColor to a HSL value.
-void SkColorToHSL(SkPMColor c, HSL& hsl);
+// Convert an SkColor to a HSL value.
+void SkColorToHSL(SkColor c, HSL& hsl);
-// Convert a HSL color to a premultiplied SkColor.
-SkPMColor HSLToSKColor(U8CPU alpha, HSL hsl);
+// Convert a HSL color to an SkColor.
+SkColor HSLToSkColor(U8CPU alpha, HSL hsl);
-// Shift an HSL value. 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 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
// to 0 and 360 on the hue color wheel (red).
// hsl_shift[1] (saturation): A saturation shift, with the
@@ -48,7 +47,7 @@ SkPMColor HSLToSKColor(U8CPU alpha, HSL hsl);
// 0 = remove all lightness (make all pixels black).
// 0.5 = leave unchanged.
// 1 = full lightness (make all pixels white).
-SkColor HSLShift(skia::HSL hsl, skia::HSL shift);
+SkColor HSLShift(SkColor color, skia::HSL shift);
} // namespace skia