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

Side by Side Diff: bench/SkCodecBenchPriv.h

Issue 1344993003: Add nanobench tests for BitmapRegionDecoder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Benchmarks for more real use cases Created 5 years, 3 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698