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

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

Issue 1170963003: Sky: Add a DartConverterEnum and use that for all our enum needs. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: 360 no scope 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/CanvasGradient.cpp ('k') | sky/engine/core/painting/Gradient.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/Gradient.dart
diff --git a/sky/engine/core/painting/Gradient.dart b/sky/engine/core/painting/Gradient.dart
index 6eb199b8b340ef126b6fcde7eb710a8612cd23d3..bb1b027601827e9fa1aeaba5d1e0a69fa16377ac 100644
--- a/sky/engine/core/painting/Gradient.dart
+++ b/sky/engine/core/painting/Gradient.dart
@@ -21,7 +21,7 @@ class Gradient extends _Gradient {
if (endPoints == null || endPoints.length != 2)
throw new ArgumentError("Expected exactly 2 [endPoints].");
validateColorStops(colors, colorStops);
- this._initLinear(endPoints, colors, colorStops, tileMode.index);
+ this._initLinear(endPoints, colors, colorStops, tileMode);
}
Gradient.Radial(Point center,
@@ -31,7 +31,7 @@ class Gradient extends _Gradient {
[TileMode tileMode = TileMode.clamp])
: super() {
validateColorStops(colors, colorStops);
- this._initRadial(center, radius, colors, colorStops, tileMode.index);
+ this._initRadial(center, radius, colors, colorStops, tileMode);
}
void validateColorStops(List<Color> colors, List<double> colorStops) {
« no previous file with comments | « sky/engine/core/painting/CanvasGradient.cpp ('k') | sky/engine/core/painting/Gradient.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698