mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
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:
parent
8a465ac6d9
commit
09c9d5b5ce
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user