Index: src/codec/SkCodecPriv.h |
diff --git a/src/codec/SkCodecPriv.h b/src/codec/SkCodecPriv.h |
index 2b22922b0c9b158c148b3c0271a0913ccaa2f3bc..8dde60fcd3c7be4fc0a501078185a4277c3bc063 100644 |
--- a/src/codec/SkCodecPriv.h |
+++ b/src/codec/SkCodecPriv.h |
@@ -117,13 +117,9 @@ inline bool valid_alpha(SkAlphaType dstAlpha, SkAlphaType srcAlpha) { |
*/ |
inline bool conversion_possible(const SkImageInfo& dst, const SkImageInfo& src) { |
// FIXME: skbug.com/4895 |
- // Currently, we treat both kLinear and ksRGB encoded images as if they are kLinear. |
- // This makes sense while we do not have proper support for ksRGB. This is also |
- // the reason why we always allow the client to request kLinear. |
- if (dst.profileType() != src.profileType() && |
- kLinear_SkColorProfileType != dst.profileType()) { |
- return false; |
- } |
+ // Currently, we ignore the SkColorProfileType on the SkImageInfo. We |
+ // will treat the encoded data as linear regardless of what the client |
+ // requests. |
// Ensure the alpha type is valid |
if (!valid_alpha(dst.alphaType(), src.alphaType())) { |