Index: dm/DMCpuTask.cpp |
diff --git a/dm/DMCpuTask.cpp b/dm/DMCpuTask.cpp |
index 5534ba4a43c8baa1a152b86d261323a1085d9f21..544f73c4c1b51b201f0b201b3ce93d50057d1342 100644 |
--- a/dm/DMCpuTask.cpp |
+++ b/dm/DMCpuTask.cpp |
@@ -24,7 +24,7 @@ CpuTask::CpuTask(const char* name, |
void CpuTask::draw() { |
SkBitmap bitmap; |
- bitmap.setConfig(fConfig, fGM->width(), fGM->height()); |
+ bitmap.setConfig(fConfig, SkScalarCeilToInt(fGM->width()), SkScalarCeilToInt(fGM->height())); |
bitmap.allocPixels(); |
bitmap.eraseColor(0x00000000); |
SkCanvas canvas(bitmap); |