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

Unified Diff: dm/DM.cpp

Issue 1907593004: Support the non-native (RGBA/BGRA) swizzle (Closed) Base URL: https://skia.googlesource.com/skia.git@tryagain
Patch Set: Multiple bug fixes Created 4 years, 8 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.h » ('j') | no next file with comments »
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 58cb773e032a5f1bb9182dc3db4b0b08043fb8c6..e77c99c3042740aef3c304024ce0b1c18b8ee14c 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -365,6 +365,9 @@ static void push_codec_src(Path path, CodecSrc::Mode mode, CodecSrc::DstColorTyp
case CodecSrc::kIndex8_Always_DstColorType:
folder.append("_kIndex8");
break;
+ case CodecSrc::kNonNative8888_Always_DstColorType:
+ folder.append("_kNonNative");
+ break;
default:
break;
}
@@ -410,6 +413,9 @@ static void push_android_codec_src(Path path, AndroidCodecSrc::Mode mode,
case CodecSrc::kIndex8_Always_DstColorType:
folder.append("_kIndex8");
break;
+ case CodecSrc::kNonNative8888_Always_DstColorType:
+ folder.append("_kNonNative");
+ break;
default:
break;
}
@@ -508,6 +514,7 @@ static void push_codec_srcs(Path path) {
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);
« no previous file with comments | « no previous file | dm/DMSrcSink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698