Index: src/core/SkBitmapProvider.cpp |
diff --git a/src/core/SkBitmapProvider.cpp b/src/core/SkBitmapProvider.cpp |
index 9f6eb94310a54741c1cf584b52fbc0a12b9180d9..d2c5013a10b530d3aad1558c1b4985ceec2e2d13 100644 |
--- a/src/core/SkBitmapProvider.cpp |
+++ b/src/core/SkBitmapProvider.cpp |
@@ -45,8 +45,7 @@ bool SkBitmapProvider::validForDrawing() const { |
SkImageInfo SkBitmapProvider::info() const { |
if (fImage) { |
- SkAlphaType at = fImage->isOpaque() ? kOpaque_SkAlphaType : kPremul_SkAlphaType; |
- return SkImageInfo::MakeN32(fImage->width(), fImage->height(), at); |
+ return as_IB(fImage)->onImageInfo(); |
} else { |
return fBitmap.info(); |
} |