Index: src/effects/SkMagnifierImageFilter.cpp |
diff --git a/src/effects/SkMagnifierImageFilter.cpp b/src/effects/SkMagnifierImageFilter.cpp |
index 1e1ec45f70026e457e1fd981223de94a4ef30295..b9998f81226099ce4c8a3a807eae0294626a89bb 100644 |
--- a/src/effects/SkMagnifierImageFilter.cpp |
+++ b/src/effects/SkMagnifierImageFilter.cpp |
@@ -361,8 +361,8 @@ bool SkMagnifierImageFilter::onFilterImage(Proxy*, const SkBitmap& src, |
SkScalar y_interp = SkScalarMul(weight, (fSrcRect.y() + y * inv_y_zoom)) + |
(SK_Scalar1 - weight) * y; |
- int x_val = SkPin32(SkScalarFloorToInt(x_interp), 0, width - 1); |
- int y_val = SkPin32(SkScalarFloorToInt(y_interp), 0, height - 1); |
+ int x_val = SkTPin(SkScalarFloorToInt(x_interp), 0, width - 1); |
+ int y_val = SkTPin(SkScalarFloorToInt(y_interp), 0, height - 1); |
*dptr = sptr[y_val * width + x_val]; |
dptr++; |