| 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
|
|
|