| Index: tools/render_pictures_main.cpp
|
| diff --git a/tools/render_pictures_main.cpp b/tools/render_pictures_main.cpp
|
| index c9bdf13451351b5e1e16b2dab4c9f5da31b5fca5..9ec136c1e7140e1720066176aaa7e0deed1d4ac1 100644
|
| --- a/tools/render_pictures_main.cpp
|
| +++ b/tools/render_pictures_main.cpp
|
| @@ -184,17 +184,17 @@ static bool render_picture_internal(const SkString& inputPath, const SkString* w
|
| // Because the GPU preprocessing step relies on the in-memory picture
|
| // statistics we need to rerecord the picture here
|
| SkPictureRecorder recorder;
|
| - picture->draw(recorder.beginRecording(picture->cullRect().width(),
|
| - picture->cullRect().height(),
|
| - NULL, 0));
|
| + picture->playback(recorder.beginRecording(picture->cullRect().width(),
|
| + picture->cullRect().height(),
|
| + NULL, 0));
|
| picture.reset(recorder.endRecording());
|
| }
|
|
|
| while (FLAGS_bench_record) {
|
| SkPictureRecorder recorder;
|
| - picture->draw(recorder.beginRecording(picture->cullRect().width(),
|
| - picture->cullRect().height(),
|
| - NULL, 0));
|
| + picture->playback(recorder.beginRecording(picture->cullRect().width(),
|
| + picture->cullRect().height(),
|
| + NULL, 0));
|
| SkAutoTUnref<SkPicture> other(recorder.endRecording());
|
| }
|
|
|
|
|