Index: src/codec/SkCodecPriv.h |
diff --git a/src/codec/SkCodecPriv.h b/src/codec/SkCodecPriv.h |
index 5d66118943b19717c288adbc29bed1b7ed4d4e7e..235c4e24aff3bcbc56787487824170c33f6fd4fa 100644 |
--- a/src/codec/SkCodecPriv.h |
+++ b/src/codec/SkCodecPriv.h |
@@ -136,12 +136,7 @@ |
case kN32_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 src.alphaType() == kOpaque_SkAlphaType; |
default: |
return dst.colorType() == src.colorType(); |
} |