Index: tools/dump_record.cpp |
diff --git a/tools/dump_record.cpp b/tools/dump_record.cpp |
index 4fb1cf502f895be3c9e116ac24a4bf2bec93c16b..bc1538fdf1465991c5c8f729285b060f0fd4f7b8 100644 |
--- a/tools/dump_record.cpp |
+++ b/tools/dump_record.cpp |
@@ -57,7 +57,8 @@ int tool_main(int argc, char** argv) { |
SkDebugf("Could not read %s as an SkPicture.\n", FLAGS_skps[i]); |
exit(1); |
} |
- const int w = src->width(), h = src->height(); |
+ const int w = SkScalarCeilToInt(src->cullRect().width()); |
+ const int h = SkScalarCeilToInt(src->cullRect().height()); |
SkRecord record; |
SkRecorder canvas(&record, w, h); |