Index: ui/views/painter.h |
diff --git a/ui/views/painter.h b/ui/views/painter.h |
index a49cd1bb78d2fdacf49f51f9b32538fdf9487b9a..50076350fbb39e89f69edc3b6eb122b75cccafa2 100644 |
--- a/ui/views/painter.h |
+++ b/ui/views/painter.h |
@@ -35,6 +35,14 @@ class VIEWS_EXPORT Painter { |
static Painter* CreateHorizontalGradient(SkColor c1, SkColor c2); |
static Painter* CreateVerticalGradient(SkColor c1, SkColor c2); |
+ // Creates a painter that draws a multi color gradient. |colors| contains the |
msw
2012/08/08 23:13:53
nit: multi-color
markusheintz_
2012/08/09 01:00:15
Done.
|
+ // gradient colors and |pos| the relative positions of the colors. The first |
+ // element in |pos| must be 0.0 and the last element 1.0. |count| contains |
+ // the number of elements in |colors| and |pos|. |
+ static Painter* CreateVerticalGradientRange(SkColor* colors, |
+ SkScalar* pos, |
+ int count); |
msw
2012/08/08 23:13:53
nit: ditto for size_t
markusheintz_
2012/08/09 01:00:15
Done.
|
+ |
// Creates a painter that divides |image| into nine regions. The four corners |
// are rendered at the size specified in insets (for example, the upper |
// left corners is rendered at 0x0 with a size of |