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

Unified Diff: sky/examples/raw/baseline.dart

Issue 1201383005: Fix baseline example (missed merge with Ian's new graphics APIs). (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/raw/baseline.dart
diff --git a/sky/examples/raw/baseline.dart b/sky/examples/raw/baseline.dart
index c51016b72acee592c53aafc61927af9e7f5b213e..cbf67ecf6766e5eec6ffb380e78f657dedbc5dd9 100644
--- a/sky/examples/raw/baseline.dart
+++ b/sky/examples/raw/baseline.dart
@@ -46,7 +46,8 @@ void drawText(sky.Canvas canvas, String lh) {
void main() {
// prepare the rendering
- sky.PictureRecorder canvas = new sky.PictureRecorder(sky.view.width, sky.view.height);
+ sky.PictureRecorder recorder = new sky.PictureRecorder();
+ sky.Canvas canvas = new sky.Canvas(recorder, sky.view.width, sky.view.height);
// background
sky.Paint paint = new sky.Paint();
@@ -59,6 +60,6 @@ void main() {
drawText(canvas, 'lh');
// put it on the screen
- sky.view.picture = canvas.endRecording();
+ sky.view.picture = recorder.endRecording();
sky.view.scheduleFrame();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698