提交 1263707b 编写于 作者: H Hixie

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

TBR=iansf

Review URL: https://codereview.chromium.org/1201383005.
上级 dca45e18
......@@ -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();
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册