Index: src/core/SkMipMap.cpp |
diff --git a/src/core/SkMipMap.cpp b/src/core/SkMipMap.cpp |
index 83164b15267e0169754ddfd5d7848093ba078e6b..de8e1d6ff2b1f2086f9815a69e4b4159f705d406 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 = compute_level(scale) >> 16; |
+ int level = SkFixedRoundToInt(compute_level(scale)); |
SkASSERT(level >= 0); |
if (level <= 0) { |
return false; |