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

Unified Diff: sky/sdk/lib/framework/painting/box_painter.dart

Issue 1180873003: Sky: Small fixes to Gradient interface. Added comments and renamed constructors. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: 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/examples/raw/painting.sky ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/painting/box_painter.dart
diff --git a/sky/sdk/lib/framework/painting/box_painter.dart b/sky/sdk/lib/framework/painting/box_painter.dart
index 0b5747da5021f8e5e4785f303bbac408cb93b121..83ae1d70ffb81b9aee81275b3bb8f63b72e6f84e 100644
--- a/sky/sdk/lib/framework/painting/box_painter.dart
+++ b/sky/sdk/lib/framework/painting/box_painter.dart
@@ -85,7 +85,7 @@ class LinearGradient extends Gradient {
'LinearGradient($endPoints, $colors, $colorStops, $tileMode)';
sky.Shader createShader() {
- return new sky.Gradient.Linear(this.endPoints, this.colors, this.colorStops,
+ return new sky.Gradient.linear(this.endPoints, this.colors, this.colorStops,
this.tileMode);
}
@@ -108,7 +108,7 @@ class RadialGradient extends Gradient {
'RadialGradient($center, $radius, $colors, $colorStops, $tileMode)';
sky.Shader createShader() {
- return new sky.Gradient.Radial(this.center, this.radius, this.colors,
+ return new sky.Gradient.radial(this.center, this.radius, this.colors,
this.colorStops, this.tileMode);
}
« no previous file with comments | « sky/examples/raw/painting.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698