Index: src/images/SkImageDecoder_libpng.cpp |
diff --git a/src/images/SkImageDecoder_libpng.cpp b/src/images/SkImageDecoder_libpng.cpp |
index ac334fc24d55ddd2fd9b3132517c07ea93614fe8..0237e461769d59d0e8fd84738cc0eaa0b52f4103 100644 |
--- a/src/images/SkImageDecoder_libpng.cpp |
+++ b/src/images/SkImageDecoder_libpng.cpp |
@@ -384,7 +384,8 @@ bool SkPNGImageDecoder::onDecode(SkStream* sk_stream, SkBitmap* decodedBitmap, |
upscale png's palette to a direct model |
*/ |
SkAutoLockColors ctLock(colorTable); |
- if (!sampler.begin(decodedBitmap, sc, doDither, ctLock.colors())) { |
+ if (!sampler.begin(decodedBitmap, sc, doDither, ctLock.colors(), |
+ this->getRequireUnpremultipliedColors())) { |
return false; |
} |
const int height = decodedBitmap->height(); |
@@ -800,7 +801,8 @@ bool SkPNGImageDecoder::onDecodeSubset(SkBitmap* bm, const SkIRect& region) { |
upscale png's palette to a direct model |
*/ |
SkAutoLockColors ctLock(colorTable); |
- if (!sampler.begin(&decodedBitmap, sc, doDither, ctLock.colors())) { |
+ if (!sampler.begin(&decodedBitmap, sc, doDither, ctLock.colors(), |
+ this->getRequireUnpremultipliedColors())) { |
return false; |
} |
const int height = decodedBitmap.height(); |