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

Unified Diff: sky/engine/core/painting/Gradient.idl

Issue 1169863002: Sky: Added radial gradients. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: rebase Created 5 years, 6 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
« no previous file with comments | « sky/engine/core/painting/Gradient.dart ('k') | sky/engine/core/painting/Shader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/Gradient.idl
diff --git a/sky/engine/core/painting/Gradient.idl b/sky/engine/core/painting/Gradient.idl
index ba53d6c5525477e29a201fbcc919098f9f5a4393..84e1f822451a76b2de0876d0905ba0797f5a0c53 100644
--- a/sky/engine/core/painting/Gradient.idl
+++ b/sky/engine/core/painting/Gradient.idl
@@ -5,6 +5,9 @@
[
ImplementedAs=CanvasGradient,
PrivateDart,
- Constructor(unsigned long gradientType, Point[] endPoints, Color[] colors, float[] colorStops)
+ Constructor()
] interface Gradient : Shader {
+ void initLinear(Point[] endPoints, Color[] colors, float[] colorStops);
+ void initRadial(Point center, double radius, Color[] colors,
+ float[] colorStops);
};
« no previous file with comments | « sky/engine/core/painting/Gradient.dart ('k') | sky/engine/core/painting/Shader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698