Commit 09c9d5b5 authored by Hixie's avatar Hixie

Fix baseline example (missed merge with Ian's new graphics APIs).

TBR=iansf

Review URL: https://codereview.chromium.org/1201383005.
parent 8a465ac6
...@@ -46,7 +46,8 @@ void drawText(sky.Canvas canvas, String lh) { ...@@ -46,7 +46,8 @@ void drawText(sky.Canvas canvas, String lh) {
void main() { void main() {
// prepare the rendering // 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 // background
sky.Paint paint = new sky.Paint(); sky.Paint paint = new sky.Paint();
...@@ -59,6 +60,6 @@ void main() { ...@@ -59,6 +60,6 @@ void main() {
drawText(canvas, 'lh'); drawText(canvas, 'lh');
// put it on the screen // put it on the screen
sky.view.picture = canvas.endRecording(); sky.view.picture = recorder.endRecording();
sky.view.scheduleFrame(); sky.view.scheduleFrame();
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment