Index: src/lazy/SkBitmapFactory.cpp |
diff --git a/src/lazy/SkBitmapFactory.cpp b/src/lazy/SkBitmapFactory.cpp |
index 0ff4ee2d17d018cf36f4af49def81340e33df12f..546485140203b070e9a78c9a017f9765edfe4071 100644 |
--- a/src/lazy/SkBitmapFactory.cpp |
+++ b/src/lazy/SkBitmapFactory.cpp |
@@ -53,16 +53,13 @@ bool SkBitmapFactory::installPixelRef(SkData* data, SkBitmap* dst) { |
return false; |
} |
- bool isOpaque = false; |
- SkBitmap::Config config = SkImageInfoToBitmapConfig(info, &isOpaque); |
+ SkBitmap::Config config = SkImageInfoToBitmapConfig(info); |
Target target; |
// FIMXE: There will be a problem if this rowbytes is calculated differently from |
// in SkLazyPixelRef. |
target.fRowBytes = SkImageMinRowBytes(info); |
- |
- dst->setConfig(config, info.fWidth, info.fHeight, target.fRowBytes); |
- dst->setIsOpaque(isOpaque); |
+ dst->setConfig(config, info.fWidth, info.fHeight, target.fRowBytes, info.fAlphaType); |
// fImageCache and fCacheSelector are mutually exclusive. |
SkASSERT(NULL == fImageCache || NULL == fCacheSelector); |