| Index: third_party/WebKit/Source/platform/graphics/Gradient.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/Gradient.h b/third_party/WebKit/Source/platform/graphics/Gradient.h
|
| index 7f64099c101751e28bfcdfa969ff4b220782dfda..93a4073b91050a2dc559bae054933842ee057437 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/Gradient.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/Gradient.h
|
| @@ -51,7 +51,7 @@ class PLATFORM_EXPORT Gradient : public RefCounted<Gradient> {
|
| WTF_MAKE_NONCOPYABLE(Gradient);
|
|
|
| public:
|
| - enum class Type { Linear, Radial };
|
| + enum class Type { Linear, Radial, Conic };
|
|
|
| enum class ColorInterpolation {
|
| Premultiplied,
|
| @@ -73,6 +73,12 @@ class PLATFORM_EXPORT Gradient : public RefCounted<Gradient> {
|
| GradientSpreadMethod = SpreadMethodPad,
|
| ColorInterpolation = ColorInterpolation::Unpremultiplied);
|
|
|
| + static PassRefPtr<Gradient> createConic(
|
| + const FloatPoint& position,
|
| + float angle,
|
| + GradientSpreadMethod = SpreadMethodPad,
|
| + ColorInterpolation = ColorInterpolation::Unpremultiplied);
|
| +
|
| virtual ~Gradient();
|
|
|
| Type getType() const { return m_type; }
|
|
|