Index: src/images/SkImageEncoder_argb.cpp |
diff --git a/src/images/SkImageEncoder_argb.cpp b/src/images/SkImageEncoder_argb.cpp |
index 296491eef81864ce0c7f48ec0af7b99c1f25f7be..02d5490452d7c092d4e98e93c8e209a4fc1cba3f 100644 |
--- a/src/images/SkImageEncoder_argb.cpp |
+++ b/src/images/SkImageEncoder_argb.cpp |
@@ -98,8 +98,7 @@ bool SkARGBImageEncoder::onEncode(SkWStream* stream, const SkBitmap& bitmap, int |
return false; |
} |
- SkAutoLockColors ctLocker; |
- const SkPMColor* colors = ctLocker.lockColors(bitmap); |
+ const SkPMColor* colors = bitmap.getColorTable() ? bitmap.getColorTable()->readColors() : NULL; |
const int argbStride = bitmap.width() * 4; |
SkAutoTDeleteArray<uint8_t> ada(new uint8_t[argbStride]); |