Index: gm/image.cpp |
diff --git a/gm/image.cpp b/gm/image.cpp |
index a67ed202dbea196f157d3d55e6877cc6f1de2c9c..400d421a40a33a63d53939fb83818be87acd5b8c 100644 |
--- a/gm/image.cpp |
+++ b/gm/image.cpp |
@@ -303,8 +303,7 @@ DEF_GM( return new ScalePixelsGM; ) |
#include "SkImageGenerator.h" |
static SkImageInfo make_info(SkImage* img) { |
- return SkImageInfo::MakeN32(img->width(), img->height(), |
- img->isOpaque() ? kOpaque_SkAlphaType : kPremul_SkAlphaType); |
+ return SkImageInfo::MakeN32(img->width(), img->height(), img->alphaType()); |
} |
// Its simple, but I wonder if we should expose this formally? |