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

Unified Diff: sky/sdk/example/raw/painting.dart

Issue 1233673003: Fix bugs found by Dart analyzer (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: typo Created 5 years, 5 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: sky/sdk/example/raw/painting.dart
diff --git a/sky/sdk/example/raw/painting.dart b/sky/sdk/example/raw/painting.dart
index 90a7b467ad4977611f849d7ec2bf6174cf501f1e..2b3453201611c012ae140f48ce5c551f54179629 100644
--- a/sky/sdk/example/raw/painting.dart
+++ b/sky/sdk/example/raw/painting.dart
@@ -9,7 +9,7 @@ import 'dart:typed_data';
void beginFrame(double timeStamp) {
sky.Size size = new sky.Size(sky.view.width, sky.view.height);
sky.PictureRecorder recorder = new sky.PictureRecorder();
- sky.Canvas canvas = new sky.Canvas(recorder, size);
+ sky.Canvas canvas = new sky.Canvas(recorder, sky.Point.origin & size);
sky.Paint paint = new sky.Paint();
sky.Point mid = size.center(sky.Point.origin);

Powered by Google App Engine
This is Rietveld 408576698