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

Unified Diff: bench/CodecBenchPriv.h

Issue 1568913002: Make CodecBench test kPremul and kUnpremul (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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
Index: bench/CodecBenchPriv.h
diff --git a/bench/CodecBenchPriv.h b/bench/CodecBenchPriv.h
index d8585b60060a1ab5719c5624a07d91da2a1a9c9b..318a8c6145ddc26691054f63a2cb4451e35bb67e 100644
--- a/bench/CodecBenchPriv.h
+++ b/bench/CodecBenchPriv.h
@@ -27,4 +27,18 @@ inline const char* color_type_to_str(SkColorType colorType) {
}
}
+inline const char* alpha_type_to_str(SkAlphaType alphaType) {
+ switch (alphaType) {
+ case kOpaque_SkAlphaType:
+ return "Opaque";
msarett 2016/01/07 18:51:59 I could be convinced to be silent when the decode
scroggo 2016/01/07 19:11:20 I would lean towards being silent.
msarett 2016/01/07 19:42:23 Done.
+ case kPremul_SkAlphaType:
+ return "Premul";
+ case kUnpremul_SkAlphaType:
+ return "Unpremul";
+ default:
+ SkASSERT(false);
+ return "Unknown";
+ }
+}
+
#endif // CodecBenchPriv_DEFINED
« no previous file with comments | « bench/CodecBench.cpp ('k') | bench/nanobench.cpp » ('j') | bench/nanobench.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698