Index: src/pdf/SkPDFShader.cpp |
diff --git a/src/pdf/SkPDFShader.cpp b/src/pdf/SkPDFShader.cpp |
index 94bdf2d78d994b637c483ab9da58f8a1235bfbb4..62adf5811db5a3672f73f5e1a8796b6c2596b779 100644 |
--- a/src/pdf/SkPDFShader.cpp |
+++ b/src/pdf/SkPDFShader.cpp |
@@ -988,8 +988,8 @@ SkPDFImageShader::SkPDFImageShader(SkPDFShader::State* state) : fState(state) { |
SkMatrix unflip; |
unflip.setTranslate(0, SkScalarRoundToScalar(deviceBounds.height())); |
unflip.preScale(SK_Scalar1, -SK_Scalar1); |
- SkISize size = SkISize::Make(SkScalarRound(deviceBounds.width()), |
- SkScalarRound(deviceBounds.height())); |
+ SkISize size = SkISize::Make(SkScalarRoundToInt(deviceBounds.width()), |
+ SkScalarRoundToInt(deviceBounds.height())); |
// TODO(edisonn): should we pass here the DCT encoder of the destination device? |
// TODO(edisonn): NYI Perspective, use SkPDFDeviceFlattener. |
SkPDFDevice pattern(size, size, unflip); |