diff options
Diffstat (limited to 'src/core/SkBitmap.cpp')
-rw-r--r-- | src/core/SkBitmap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp index d7a311e778..0a8e9ffdde 100644 --- a/src/core/SkBitmap.cpp +++ b/src/core/SkBitmap.cpp @@ -246,7 +246,7 @@ void SkBitmap::setConfig(Config c, int width, int height, int rowBytes) { goto ERROR; } } - + fConfig = SkToU8(c); fWidth = width; fHeight = height; @@ -927,7 +927,7 @@ void SkBitmap::buildMipMap(bool forceRebuild) { default: return; // don't build mipmaps for these configs } - + SkAutoLockPixels alp(*this); if (!this->readyToDraw()) { return; @@ -949,7 +949,7 @@ void SkBitmap::buildMipMap(bool forceRebuild) { maxLevels += 1; } } - + // nothing to build if (0 == maxLevels) { return; |