Add SkImageGeneratorWIC
This will be a replacement for SkImageDecoder_WIC.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1785613010
CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac-Clang-x86_64-Release-CMake-Trybot
Review URL: https://codereview.chromium.org/1785613010
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 1302463..9b3a42f 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -605,6 +605,12 @@
{
push_image_gen_src(path, ImageGenSrc::kPlatform_Mode, alphaType, false);
}
+#elif defined(SK_BUILD_FOR_WIN)
+ if (kWEBP_SkEncodedFormat != codec->getEncodedFormat() &&
+ kWBMP_SkEncodedFormat != codec->getEncodedFormat())
+ {
+ push_image_gen_src(path, ImageGenSrc::kPlatform_Mode, alphaType, false);
+ }
#endif
}
}