Index: gm/pictureshader.cpp |
diff --git a/gm/pictureshader.cpp b/gm/pictureshader.cpp |
index 0b0a99e0263a500ea326208f1642547d993951d0..152cdf37a4ee69eadb6e6632c1ff96b5249e54c3 100644 |
--- a/gm/pictureshader.cpp |
+++ b/gm/pictureshader.cpp |
@@ -30,14 +30,12 @@ public: |
// Build the picture. |
SkPictureRecorder recorder; |
- SkCanvas* pictureCanvas = recorder.beginRecording(SkScalarRoundToInt(tileSize), |
- SkScalarRoundToInt(tileSize), |
- NULL, 0); |
+ SkCanvas* pictureCanvas = recorder.beginRecording(tileSize, tileSize, NULL, 0); |
this->drawTile(pictureCanvas); |
fPicture.reset(recorder.endRecording()); |
// Build a reference bitmap. |
- fBitmap.allocN32Pixels(SkScalarRoundToInt(tileSize), SkScalarRoundToInt(tileSize)); |
+ fBitmap.allocN32Pixels(SkScalarCeilToInt(tileSize), SkScalarCeilToInt(tileSize)); |
fBitmap.eraseColor(SK_ColorTRANSPARENT); |
SkCanvas bitmapCanvas(fBitmap); |
this->drawTile(&bitmapCanvas); |