From 90978148e71e525c887c389b2bec6c4cbbd1dee1 Mon Sep 17 00:00:00 2001 From: msarett Date: Tue, 27 Oct 2015 07:12:24 -0700 Subject: Fix DMSrcSink bug We want to request premultiplied decodes. BUG=skia: Review URL: https://codereview.chromium.org/1419403003 --- dm/DMSrcSink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dm') diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp index cf9a6a2a2c..e0ec5e139c 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); } return true; } -- cgit v1.2.3