Index: dm/DMUtil.cpp |
diff --git a/dm/DMUtil.cpp b/dm/DMUtil.cpp |
index 33af18ecdd5745e88b9131f005b6c7928b499c13..19b1c0f397f99e9cee8f75c41a4c0b21e243e95e 100644 |
--- a/dm/DMUtil.cpp |
+++ b/dm/DMUtil.cpp |
@@ -21,8 +21,8 @@ SkString FileToTaskName(SkString filename) { |
} |
SkPicture* RecordPicture(skiagm::GM* gm, SkBBHFactory* factory, bool skr) { |
- const int w = gm->getISize().width(), |
- h = gm->getISize().height(); |
+ const SkScalar w = SkIntToScalar(gm->getISize().width()), |
+ h = SkIntToScalar(gm->getISize().height()); |
SkPictureRecorder recorder; |
SkCanvas* canvas = skr ? recorder.EXPERIMENTAL_beginRecording(w, h, factory) |