Index: src/images/SkImageDecoder_libpng.cpp |
diff --git a/src/images/SkImageDecoder_libpng.cpp b/src/images/SkImageDecoder_libpng.cpp |
index dd1d1c8a98fd69773651dfcf4b2f15e22f35aae0..7911a293f67efc953182dfcf320463b9da2e9ef7 100644 |
--- a/src/images/SkImageDecoder_libpng.cpp |
+++ b/src/images/SkImageDecoder_libpng.cpp |
@@ -709,17 +709,7 @@ bool SkPNGImageDecoder::decodePalette(png_structp png_ptr, png_infop info_ptr, |
*colorPtr = colorPtr[-1]; |
} |
- SkAlphaType alphaType = kOpaque_SkAlphaType; |
- if (reallyHasAlpha) { |
- if (this->getRequireUnpremultipliedColors()) { |
- alphaType = kUnpremul_SkAlphaType; |
- } else { |
- alphaType = kPremul_SkAlphaType; |
- } |
- } |
- |
- *colorTablep = SkNEW_ARGS(SkColorTable, |
- (colorStorage, colorCount, alphaType)); |
+ *colorTablep = SkNEW_ARGS(SkColorTable, (colorStorage, colorCount)); |
*reallyHasAlphap = reallyHasAlpha; |
return true; |
} |