| Index: tools/bench_pictures_main.cpp
|
| diff --git a/tools/bench_pictures_main.cpp b/tools/bench_pictures_main.cpp
|
| index ac66dc50d644b1be2a27b6896487def4964bc457..4bb31949c95a7df8c1d9f6b006023fffbf1c1f5a 100644
|
| --- a/tools/bench_pictures_main.cpp
|
| +++ b/tools/bench_pictures_main.cpp
|
| @@ -201,13 +201,17 @@ static bool run_single_benchmark(const SkString& inputPath,
|
| // 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->width(), picture->height(), NULL, 0));
|
| + picture->draw(recorder.beginRecording(picture->cullRect().width(),
|
| + picture->cullRect().height(),
|
| + NULL, 0));
|
| picture.reset(recorder.endRecording());
|
| }
|
|
|
| SkString filename = SkOSPath::Basename(inputPath.c_str());
|
|
|
| - gWriter.bench(filename.c_str(), picture->width(), picture->height());
|
| + gWriter.bench(filename.c_str(),
|
| + SkScalarCeilToInt(picture->cullRect().width()),
|
| + SkScalarCeilToInt(picture->cullRect().height()));
|
|
|
| benchmark.run(picture);
|
|
|
|
|