Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: third_party/WebKit/Source/platform/graphics/Gradient.h

Issue 2787113002: Initial conic-gradient() implementation (Closed)
Patch Set: baselines Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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; }
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSGradientValue.cpp ('k') | third_party/WebKit/Source/platform/graphics/Gradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698