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

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: Silent for opaque images 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..5028573ad2e241dba9f28d4a16a60177eba166cd 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 "";
+ case kPremul_SkAlphaType:
+ return "Premul";
+ case kUnpremul_SkAlphaType:
+ return "Unpremul";
+ default:
+ SkASSERT(false);
+ return "Unknown";
+ }
+}
+
#endif // CodecBenchPriv_DEFINED
« bench/CodecBench.cpp ('K') | « bench/CodecBench.cpp ('k') | bench/nanobench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698