Chromium Code Reviews| Index: src/lazy/SkBitmapFactory.cpp |
| diff --git a/src/lazy/SkBitmapFactory.cpp b/src/lazy/SkBitmapFactory.cpp |
| index 0ff4ee2d17d018cf36f4af49def81340e33df12f..1f4fca124bf75579e935a302a5da8da6d7925413 100644 |
| --- a/src/lazy/SkBitmapFactory.cpp |
| +++ b/src/lazy/SkBitmapFactory.cpp |
| @@ -61,8 +61,8 @@ bool SkBitmapFactory::installPixelRef(SkData* data, SkBitmap* dst) { |
| // 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, |
| + isOpaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType); |
|
scroggo
2013/10/18 19:32:40
info should have the actual alpha type.
|
| // fImageCache and fCacheSelector are mutually exclusive. |
| SkASSERT(NULL == fImageCache || NULL == fCacheSelector); |