Index: src/core/SkBitmapProcState.cpp |
diff --git a/src/core/SkBitmapProcState.cpp b/src/core/SkBitmapProcState.cpp |
index 656e0c4ca0b2fca68fb3c5624104adba113f2146..dad0ca92b9f5b1d39f11794e1e4dfd3483953826 100644 |
--- a/src/core/SkBitmapProcState.cpp |
+++ b/src/core/SkBitmapProcState.cpp |
@@ -144,13 +144,8 @@ bool SkBitmapProcState::possiblyScaleImage() { |
float trueDestWidth = fOrigBitmap.width() / invScaleX; |
float trueDestHeight = fOrigBitmap.height() / invScaleY; |
-#ifndef SK_IGNORE_PROPER_FRACTIONAL_SCALING |
float roundedDestWidth = SkScalarRoundToScalar(trueDestWidth); |
reed1
2014/10/29 17:35:03
future nit: these should be SkScalar instead of fl
|
float roundedDestHeight = SkScalarRoundToScalar(trueDestHeight); |
-#else |
- float roundedDestWidth = trueDestWidth; |
- float roundedDestHeight = trueDestHeight; |
-#endif |
if (SkPaint::kHigh_FilterLevel == fFilterLevel && |
fInvMatrix.getType() <= (SkMatrix::kScale_Mask | SkMatrix::kTranslate_Mask) && |