Support the non-native (RGBA/BGRA) swizzle
BUG=skia:4456
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1907593004
Review URL: https://codereview.chromium.org/1907593004
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 58cb773..e77c99c 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -365,6 +365,9 @@
case CodecSrc::kIndex8_Always_DstColorType:
folder.append("_kIndex8");
break;
+ case CodecSrc::kNonNative8888_Always_DstColorType:
+ folder.append("_kNonNative");
+ break;
default:
break;
}
@@ -410,6 +413,9 @@
case CodecSrc::kIndex8_Always_DstColorType:
folder.append("_kIndex8");
break;
+ case CodecSrc::kNonNative8888_Always_DstColorType:
+ folder.append("_kNonNative");
+ break;
default:
break;
}
@@ -508,6 +514,7 @@
SkTArray<CodecSrc::DstColorType> colorTypes;
colorTypes.push_back(CodecSrc::kGetFromCanvas_DstColorType);
+ colorTypes.push_back(CodecSrc::kNonNative8888_Always_DstColorType);
switch (codec->getInfo().colorType()) {
case kGray_8_SkColorType:
colorTypes.push_back(CodecSrc::kGrayscale_Always_DstColorType);