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); |
} |