Fix int/SkScalar mismatch.

Review URL: https://codereview.chromium.org/51043005

git-svn-id: http://skia.googlecode.com/svn/trunk@12035 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
vandebo@chromium.org 2013-10-30 21:00:47 +00:00
parent 3b416216d1
commit fd3c8c243a

View File

@ -1357,7 +1357,8 @@ void SkPDFDevice::drawDevice(const SkDraw& d, SkBaseDevice* device,
if (content.needShape()) {
SkPath shape;
shape.addRect(SkRect::MakeXYWH(SkIntToScalar(x), SkIntToScalar(y),
device->width(), device->height()));
SkIntToScalar(device->width()),
SkIntToScalar(device->height())));
content.setShape(shape);
}
if (!content.needSource()) {
@ -2246,7 +2247,8 @@ void SkPDFDevice::internalDrawBitmap(const SkMatrix& origMatrix,
}
if (content.needShape()) {
SkPath shape;
shape.addRect(SkRect::MakeWH(subset.width(), subset.height()));
shape.addRect(SkRect::MakeWH(SkIntToScalar(subset.width()),
SkIntToScalar( subset.height())));
shape.transform(matrix);
content.setShape(shape);
}