Index: tools/skiaserve/Request.cpp |
diff --git a/tools/skiaserve/Request.cpp b/tools/skiaserve/Request.cpp |
index 7cbc9ef212d9a80a99be06c90352ec8fb25c28a3..b16c5cf3bcdfc6fe6f4102a1742d1200551c1815 100644 |
--- a/tools/skiaserve/Request.cpp |
+++ b/tools/skiaserve/Request.cpp |
@@ -98,7 +98,8 @@ SkData* Request::writeOutSkp() { |
// Playback into picture recorder |
SkIRect bounds = this->getBounds(); |
SkPictureRecorder recorder; |
- SkCanvas* canvas = recorder.beginRecording(bounds.width(), bounds.height()); |
+ SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(bounds.width()), |
+ SkIntToScalar(bounds.height())); |
fDebugCanvas->draw(canvas); |