Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index cf9a6a2a2c8d840e5ad8c733821e3623a0672047..e0ec5e139ce988d07a8dbfe76a34b0ba2611a279 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -264,7 +264,7 @@ bool get_decode_info(SkImageInfo* decodeInfo, const SkImageInfo& defaultInfo, |
// FIXME: Currently we cannot draw unpremultiplied sources. |
if (decodeInfo->alphaType() == kUnpremul_SkAlphaType) { |
- decodeInfo->makeAlphaType(kPremul_SkAlphaType); |
+ *decodeInfo = decodeInfo->makeAlphaType(kPremul_SkAlphaType); |
scroggo
2015/10/27 13:59:04
I wonder if makeAlphaType should be SK_WARN_UNUSED
|
} |
return true; |
} |