Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 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 SkCodecBenchPriv_DEFINED | |
| 9 #define SkCodecBenchPriv_DEFINED | |
| 10 | |
| 11 static const char* color_type_to_str(SkColorType colorType) { | |
|
scroggo
2015/09/22 12:13:08
I think this should be inline and not static (see
msarett
2015/09/22 15:27:19
Yes agreed!
Also, I'm renaming this CodecBenchPri
| |
| 12 switch (colorType) { | |
| 13 case kN32_SkColorType: | |
| 14 return "N32"; | |
| 15 case kRGB_565_SkColorType: | |
| 16 return "565"; | |
| 17 case kGray_8_SkColorType: | |
| 18 return "Gray8"; | |
| 19 case kIndex_8_SkColorType: | |
| 20 return "Index8"; | |
| 21 case kAlpha_8_SkColorType: | |
| 22 return "Alpha8"; | |
| 23 default: | |
| 24 return "Unknown"; | |
| 25 } | |
| 26 } | |
| 27 | |
| 28 #endif // SkCodecBenchPriv_DEFINED | |
| OLD | NEW |