blob: d8585b60060a1ab5719c5624a07d91da2a1a9c9b [file] [log] [blame]
msarett7f691442015-09-22 11:56:16 -07001/*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef CodecBenchPriv_DEFINED
9#define CodecBenchPriv_DEFINED
10
11#include "SkImageInfo.h"
12
13inline const char* color_type_to_str(SkColorType colorType) {
14 switch (colorType) {
15 case kN32_SkColorType:
16 return "N32";
17 case kRGB_565_SkColorType:
18 return "565";
19 case kGray_8_SkColorType:
20 return "Gray8";
21 case kIndex_8_SkColorType:
22 return "Index8";
23 case kAlpha_8_SkColorType:
24 return "Alpha8";
25 default:
26 return "Unknown";
27 }
28}
29
30#endif // CodecBenchPriv_DEFINED