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

Unified Diff: sky/sdk/lib/example/raw/spinning_arabic.dart

Issue 1214833004: Split Size into Size and Offset. (Closed) Base URL: https://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/sdk/lib/example/raw/shadow.dart ('k') | sky/sdk/lib/example/raw/spinning_image.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/example/raw/spinning_arabic.dart
diff --git a/sky/sdk/lib/example/raw/spinning_arabic.dart b/sky/sdk/lib/example/raw/spinning_arabic.dart
index c48281732a05d0fd50ffb2eea82e742b27a718d1..c9c70e0b0ecd774a9bccdd1b9e1c4fb45c57d20a 100644
--- a/sky/sdk/lib/example/raw/spinning_arabic.dart
+++ b/sky/sdk/lib/example/raw/spinning_arabic.dart
@@ -13,7 +13,7 @@ void beginFrame(double timeStamp) {
timeBase = timeStamp;
double delta = timeStamp - timeBase;
PictureRecorder recorder = new PictureRecorder();
- Canvas canvas = new Canvas(recorder, view.width, view.height);
+ Canvas canvas = new Canvas(recorder, new Size(view.width, view.height));
canvas.translate(view.width / 2.0, view.height / 2.0);
canvas.rotate(math.PI * delta / 1800);
canvas.drawRect(new Rect.fromLTRB(-100.0, -100.0, 100.0, 100.0),
« no previous file with comments | « sky/sdk/lib/example/raw/shadow.dart ('k') | sky/sdk/lib/example/raw/spinning_image.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698