| Index: ui/gfx/image/image_skia_operations.h
|
| diff --git a/ui/gfx/image/image_skia_operations.h b/ui/gfx/image/image_skia_operations.h
|
| index 993655ca0ef5acc4127a14197b897b063fd749ca..042c836432e62ad5351ed415765ed88c078534b3 100644
|
| --- a/ui/gfx/image/image_skia_operations.h
|
| +++ b/ui/gfx/image/image_skia_operations.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "base/gtest_prod_util.h"
|
| #include "ui/base/ui_export.h"
|
| +#include "ui/gfx/color_utils.h"
|
| #include "ui/gfx/shadow_value.h"
|
|
|
| namespace gfx {
|
| @@ -36,6 +37,24 @@ class UI_EXPORT ImageSkiaOperations {
|
| int src_x, int src_y,
|
| int dst_w, int dst_h);
|
|
|
| + // Shift an image's HSL values. 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 for the image - 0 and 1 map
|
| + // to 0 and 360 on the hue color wheel (red).
|
| + // hsl_shift[1] (saturation): A saturation shift for the image, with the
|
| + // following key values:
|
| + // 0 = remove all color.
|
| + // 0.5 = leave unchanged.
|
| + // 1 = fully saturate the image.
|
| + // hsl_shift[2] (lightness): A lightness shift for the image, with the
|
| + // following key values:
|
| + // 0 = remove all lightness (make all pixels black).
|
| + // 0.5 = leave unchanged.
|
| + // 1 = full lightness (make all pixels white).
|
| + static ImageSkia CreateHSLShiftedImage(const gfx::ImageSkia& image,
|
| + const color_utils::HSL& hsl_shift);
|
| +
|
| // Creates a button background image by compositing the color and image
|
| // together, then applying the mask. This is a highly specialized composite
|
| // operation that is the equivalent of drawing a background in |color|,
|
|
|