| Index: tools/bench_record.cpp
|
| diff --git a/tools/bench_record.cpp b/tools/bench_record.cpp
|
| index df1f24cdc3f3d18931dbdd8f0750047881eb0c6f..45a143f824fe8d76c06e9f56277dcc89209496d6 100644
|
| --- a/tools/bench_record.cpp
|
| +++ b/tools/bench_record.cpp
|
| @@ -61,9 +61,13 @@ static SkBBHFactory* parse_FLAGS_bbh() {
|
| static void rerecord(const SkPicture& src, SkBBHFactory* bbhFactory) {
|
| SkPictureRecorder recorder;
|
| if (FLAGS_skr) {
|
| - src.draw(recorder.EXPERIMENTAL_beginRecording(src.width(), src.height(), bbhFactory));
|
| + src.draw(recorder.EXPERIMENTAL_beginRecording(src.cullRect().width(),
|
| + src.cullRect().height(),
|
| + bbhFactory));
|
| } else {
|
| - src.draw(recorder. DEPRECATED_beginRecording(src.width(), src.height(), bbhFactory));
|
| + src.draw(recorder. DEPRECATED_beginRecording(src.cullRect().width(),
|
| + src.cullRect().height(),
|
| + bbhFactory));
|
| }
|
| SkAutoTUnref<SkPicture> pic(recorder.endRecording());
|
| }
|
|
|