Index: src/core/SkMipMap.cpp |
diff --git a/src/core/SkMipMap.cpp b/src/core/SkMipMap.cpp |
index de8e1d6ff2b1f2086f9815a69e4b4159f705d406..83164b15267e0169754ddfd5d7848093ba078e6b 100644 |
--- a/src/core/SkMipMap.cpp |
+++ b/src/core/SkMipMap.cpp |
@@ -251,7 +251,7 @@ bool SkMipMap::extractLevel(SkScalar scale, Level* levelPtr) const { |
return false; |
} |
- int level = SkFixedRoundToInt(compute_level(scale)); |
+ int level = compute_level(scale) >> 16; |
SkASSERT(level >= 0); |
if (level <= 0) { |
return false; |