| Index: sky/engine/core/painting/CanvasGradient.h
|
| diff --git a/sky/engine/core/painting/CanvasGradient.h b/sky/engine/core/painting/CanvasGradient.h
|
| index 8779eaa72aca3c16a5f4642a7f74f9ba003e1061..93aea75c911bf942847d0be92a32137bb54b44c0 100644
|
| --- a/sky/engine/core/painting/CanvasGradient.h
|
| +++ b/sky/engine/core/painting/CanvasGradient.h
|
| @@ -13,6 +13,13 @@
|
|
|
| namespace blink {
|
|
|
| +class TileMode {};
|
| +
|
| +template <>
|
| +struct DartConverter<TileMode> : public DartConverterEnum<SkShader::TileMode> {};
|
| +
|
| +COMPILE_ASSERT(SkShader::kTileModeCount == 3, Need_to_update_Gradient_dart);
|
| +
|
| class CanvasGradient : public Shader {
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| @@ -22,12 +29,12 @@ class CanvasGradient : public Shader {
|
| void initLinear(const Vector<Point>& end_points,
|
| const Vector<SkColor>& colors,
|
| const Vector<float>& color_stops,
|
| - unsigned tile_mode);
|
| + SkShader::TileMode tile_mode);
|
| void initRadial(const Point& center,
|
| double radius,
|
| const Vector<SkColor>& colors,
|
| const Vector<float>& color_stops,
|
| - unsigned tile_mode);
|
| + SkShader::TileMode tile_mode);
|
|
|
| private:
|
| CanvasGradient();
|
|
|