Index: tools/render_pictures_main.cpp |
diff --git a/tools/render_pictures_main.cpp b/tools/render_pictures_main.cpp |
index d508510fea0ea1a8083b9a8cafad8f84e2de84e5..c9bdf13451351b5e1e16b2dab4c9f5da31b5fca5 100644 |
--- a/tools/render_pictures_main.cpp |
+++ b/tools/render_pictures_main.cpp |
@@ -184,17 +184,23 @@ 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->width(), picture->height(), NULL, 0)); |
+ picture->draw(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->width(), picture->height(), NULL, 0)); |
+ picture->draw(recorder.beginRecording(picture->cullRect().width(), |
+ picture->cullRect().height(), |
+ NULL, 0)); |
SkAutoTUnref<SkPicture> other(recorder.endRecording()); |
} |
- SkDebugf("drawing... [%i %i] %s\n", picture->width(), picture->height(), |
+ SkDebugf("drawing... [%f %f %f %f] %s\n", |
+ picture->cullRect().fLeft, picture->cullRect().fTop, |
+ picture->cullRect().fRight, picture->cullRect().fBottom, |
inputPath.c_str()); |
renderer.init(picture, &writePathString, &mismatchPathString, &inputFilename, |