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(); |
} |