Index: src/core/SkMipMap.cpp |
diff --git a/src/core/SkMipMap.cpp b/src/core/SkMipMap.cpp |
index c037865fd49b3f25c555a1eb19d5aa217cd8c6bb..39d42a255eda3260ad4cdf3fc58117ffb617f858 100644 |
--- a/src/core/SkMipMap.cpp |
+++ b/src/core/SkMipMap.cpp |
@@ -297,13 +297,8 @@ SkMipMap* SkMipMap::Build(const SkPixmap& src, SkDiscardableFactoryProc fact) { |
rowBytes = SkToU32(SkColorTypeMinRowBytes(ct, width)); |
levels[i].fPixmap = SkPixmap(SkImageInfo::Make(width, height, ct, at), addr, rowBytes); |
-#ifdef SK_SUPPORT_LEGACY_ANISOTROPIC_MIPMAPS |
- levels[i].fScale = SkSize::Make(SkIntToScalar(width) / src.width(), |
- SkIntToScalar(width) / src.width()); |
-#else |
levels[i].fScale = SkSize::Make(SkIntToScalar(width) / src.width(), |
SkIntToScalar(height) / src.height()); |
-#endif |
const SkPixmap& dstPM = levels[i].fPixmap; |
const void* srcBasePtr = srcPM.addr(); |