Index: src/effects/SkBicubicImageFilter.cpp |
diff --git a/src/effects/SkBicubicImageFilter.cpp b/src/effects/SkBicubicImageFilter.cpp |
index d6674153d5287d4c3afec471bf413a04ce81a3a5..5148e13e12f4d21ae8c747de9adf87dd53f2f464 100644 |
--- a/src/effects/SkBicubicImageFilter.cpp |
+++ b/src/effects/SkBicubicImageFilter.cpp |
@@ -115,7 +115,7 @@ bool SkBicubicImageFilter::onFilterImage(Proxy* proxy, |
src.getBounds(&srcRect); |
SkMatrix inverse; |
inverse.setRectToRect(dstRect, srcRect, SkMatrix::kFill_ScaleToFit); |
- inverse.postTranslate(SkFloatToScalar(-0.5f), SkFloatToScalar(-0.5f)); |
+ inverse.postTranslate(-0.5f, -0.5f); |
for (int y = dstIRect.fTop; y < dstIRect.fBottom; ++y) { |
SkPMColor* dptr = result->getAddr32(dstIRect.fLeft, y); |