Index: tools/gpuveto.cpp |
diff --git a/tools/gpuveto.cpp b/tools/gpuveto.cpp |
index 68f343b65070c62076590fa490532a235741ede1..bfe383762681426dc683e93b330c9250754fcd29 100644 |
--- a/tools/gpuveto.cpp |
+++ b/tools/gpuveto.cpp |
@@ -55,7 +55,9 @@ int tool_main(int argc, char** argv) { |
// The SkPicture tracking information is only generated during recording |
// an isn't serialized. Replay the picture to regenerated the tracking data. |
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> recorded(recorder.endRecording()); |
if (recorded->suitableForGpuRasterization(NULL)) { |