Index: dm/DMReplayTask.cpp |
diff --git a/dm/DMReplayTask.cpp b/dm/DMReplayTask.cpp |
index bc94f73cb1791230a5362d6d299fd7ff6544be3a..7e183f6cbd44e4a45d276f906f0eaadca117ba60 100644 |
--- a/dm/DMReplayTask.cpp |
+++ b/dm/DMReplayTask.cpp |
@@ -19,7 +19,9 @@ ReplayTask::ReplayTask(const char* suffix, |
void ReplayTask::draw() { |
SkPicture picture; |
- SkCanvas* canvas = picture.beginRecording(fGM->width(), fGM->height(), 0 /*flags*/); |
+ SkCanvas* canvas = picture.beginRecording(SkScalarCeilToInt(fGM->width()), |
+ SkScalarCeilToInt(fGM->height()), |
+ 0 /*flags*/); |
canvas->concat(fGM->getInitialTransform()); |
fGM->draw(canvas); |
@@ -28,7 +30,7 @@ void ReplayTask::draw() { |
picture.endRecording(); |
SkBitmap bitmap; |
- bitmap.setConfig(fConfig, fGM->width(), fGM->height()); |
+ bitmap.setConfig(fConfig, SkScalarCeilToInt(fGM->width()), SkScalarCeilToInt(fGM->height())); |
bitmap.allocPixels(); |
bitmap.eraseColor(0x00000000); |