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

Unified Diff: sky/sdk/lib/example/raw/baseline.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/game/lib/sprite_box.dart ('k') | sky/sdk/lib/example/raw/hello_world.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/example/raw/baseline.dart
diff --git a/sky/sdk/lib/example/raw/baseline.dart b/sky/sdk/lib/example/raw/baseline.dart
index cbf67ecf6766e5eec6ffb380e78f657dedbc5dd9..f848985d2fe4159413d1a4b1d4afde5412a6d362 100644
--- a/sky/sdk/lib/example/raw/baseline.dart
+++ b/sky/sdk/lib/example/raw/baseline.dart
@@ -47,7 +47,7 @@ void drawText(sky.Canvas canvas, String lh) {
void main() {
// prepare the rendering
sky.PictureRecorder recorder = new sky.PictureRecorder();
- sky.Canvas canvas = new sky.Canvas(recorder, sky.view.width, sky.view.height);
+ sky.Canvas canvas = new sky.Canvas(recorder, new sky.Size(sky.view.width, sky.view.height));
// background
sky.Paint paint = new sky.Paint();
« no previous file with comments | « sky/sdk/lib/example/game/lib/sprite_box.dart ('k') | sky/sdk/lib/example/raw/hello_world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698