Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index 33848975e98e1461bb4e3e9fc7f2d58476bbc8a6..f27acf229adb47b0b30a5f82e628d7e907da4eef 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -323,8 +323,7 @@ static bool get_decode_info(SkImageInfo* decodeInfo, SkColorType canvasColorType |
*decodeInfo = decodeInfo->makeColorType(kIndex_8_SkColorType); |
break; |
case CodecSrc::kGrayscale_Always_DstColorType: |
- if (kRGB_565_SkColorType == canvasColorType || |
- kOpaque_SkAlphaType != decodeInfo->alphaType()) { |
+ if (kRGB_565_SkColorType == canvasColorType) { |
return false; |
} |
*decodeInfo = decodeInfo->makeColorType(kGray_8_SkColorType); |