Index: src/ports/SkImageDecoder_WIC.cpp |
diff --git a/src/ports/SkImageDecoder_WIC.cpp b/src/ports/SkImageDecoder_WIC.cpp |
index c3666aca5cd34068df6f92f8f15b8e483038cbd5..1bda67fe91d86861db18443fde8038622e7fb434 100644 |
--- a/src/ports/SkImageDecoder_WIC.cpp |
+++ b/src/ports/SkImageDecoder_WIC.cpp |
@@ -240,7 +240,9 @@ bool SkImageDecoder_WIC::decodeStream(SkStream* stream, SkBitmap* bm, WICModes w |
); |
// Note: we don't need to premultiply here since we specified PBGRA |
- bm->computeAndSetOpaquePredicate(); |
+ if (ComputeIsOpaque(*bm)) { |
+ bm->setAlphaType(kOpaque_SkAlphaType); |
+ } |
} |
return SUCCEEDED(hr); |