Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Unified Diff: dm/DM.cpp

Issue 1661913005: Test unpremul decodes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dm/DMSrcSink.cpp » ('j') | dm/DMSrcSink.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index e5a6e4d196d2cc5c990f551b01f7fc6dcc742939..2d381c821e98fa8187a98b9c027c2a4cbdf36803 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -311,6 +311,9 @@ static void push_android_codec_src(Path path, AndroidCodecSrc::Mode mode,
case kPremul_SkAlphaType:
folder.append("_premul");
break;
+ case kUnpremul_SkAlphaType:
+ folder.append("_unpremul");
+ break;
default:
break;
}
@@ -371,8 +374,7 @@ static void push_codec_srcs(Path path) {
SkTArray<SkAlphaType> alphaModes;
alphaModes.push_back(kPremul_SkAlphaType);
- // FIXME: Currently we cannot draw unpremultiplied sources. skbug.com/3338 and skbug.com/3339
- // alphaModes.push_back(kUnpremul_SkAlphaType);
+ alphaModes.push_back(kUnpremul_SkAlphaType);
msarett 2016/02/03 20:06:36 If we feel that this is too much, I'd be fine with
if (codec->getInfo().alphaType() == kOpaque_SkAlphaType) {
alphaModes.push_back(kOpaque_SkAlphaType);
}
« no previous file with comments | « no previous file | dm/DMSrcSink.cpp » ('j') | dm/DMSrcSink.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698