Index: src/images/SkImageDecoder.cpp |
diff --git a/src/images/SkImageDecoder.cpp b/src/images/SkImageDecoder.cpp |
index 15cd1a60c0dd6dc27bf517f0a85d9453e5301e70..3ee41124c01ef68186cd2c7d2ffdaa9395ce6aef 100644 |
--- a/src/images/SkImageDecoder.cpp |
+++ b/src/images/SkImageDecoder.cpp |
@@ -245,8 +245,7 @@ bool SkImageDecoder::cropBitmap(SkBitmap *dst, SkBitmap *src, int sampleSize, |
} |
// if the destination has no pixels then we must allocate them. |
if (dst->isNull()) { |
- dst->setConfig(src->getConfig(), w, h); |
- dst->setIsOpaque(src->isOpaque()); |
+ dst->setConfig(src->getConfig(), w, h, 0, src->alphaType()); |
if (!this->allocPixelRef(dst, NULL)) { |
SkDEBUGF(("failed to allocate pixels needed to crop the bitmap")); |