Index: src/codec/SkCodecPriv.h |
diff --git a/src/codec/SkCodecPriv.h b/src/codec/SkCodecPriv.h |
index 1694784785c8f4f32050c643275369e53ad4d4c6..6771ef72b8fe7dfabcc78af8048cbf6bffb65887 100644 |
--- a/src/codec/SkCodecPriv.h |
+++ b/src/codec/SkCodecPriv.h |
@@ -132,12 +132,7 @@ inline bool conversion_possible(const SkImageInfo& dst, const SkImageInfo& src) |
case kBGRA_8888_SkColorType: |
return true; |
case kRGB_565_SkColorType: |
- return kOpaque_SkAlphaType == dst.alphaType(); |
- case kGray_8_SkColorType: |
- if (kOpaque_SkAlphaType != dst.alphaType()) { |
- return false; |
- } |
- // Fall through |
+ return kOpaque_SkAlphaType == src.alphaType(); |
default: |
return dst.colorType() == src.colorType(); |
} |