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

TBR=iansf

Review URL: https://codereview.chromium.org/1201383005.
This commit is contained in:
Hixie 2015-06-24 11:33:54 -07:00
parent 8a465ac6d9
commit 09c9d5b5ce

View File

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