diff options
author | msarett <msarett@google.com> | 2015-10-27 07:12:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-27 07:12:24 -0700 |
commit | 90978148e71e525c887c389b2bec6c4cbbd1dee1 (patch) | |
tree | 90c3fd0d2beacb843f7b1c4c0a3a092ae7640577 /dm | |
parent | e91f7b5ceca22e2e68e252b55d59804d1ce8ae4d (diff) |
Fix DMSrcSink bug
We want to request premultiplied decodes.
BUG=skia:
Review URL: https://codereview.chromium.org/1419403003
Diffstat (limited to 'dm')
-rw-r--r-- | dm/DMSrcSink.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |