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

Unified Diff: bench/subset/SubsetBenchPriv.h

Issue 1344993003: Add nanobench tests for BitmapRegionDecoder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Move buildTileIndex to onPreDraw 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 side-by-side diff with in-line comments
Download patch
Index: bench/subset/SubsetBenchPriv.h
diff --git a/bench/subset/SubsetBenchPriv.h b/bench/subset/SubsetBenchPriv.h
index 02f7040a227fa2b4b5d2a0f4164a8dcfbb68e4b3..7e1dfb953068e4fa5a328b6920070542668794ad 100644
--- a/bench/subset/SubsetBenchPriv.h
+++ b/bench/subset/SubsetBenchPriv.h
@@ -13,26 +13,6 @@
#include "SkImageGenerator.h"
/*
- * Convert the color type to a string
- */
-static const char* get_color_name(SkColorType colorType) {
- switch(colorType) {
- case kN32_SkColorType:
- return "N32";
- case kRGB_565_SkColorType:
- return "565";
- case kGray_8_SkColorType:
- return "Gray8";
- case kIndex_8_SkColorType:
- return "Index8";
- case kAlpha_8_SkColorType:
- return "Alpha8";
- default:
- return "Unknown";
- }
-}
-
-/*
* If we plan to decode to kIndex8, we must create a color table and pass it to the
* bitmap when we allocate pixels. Otherwise, we simply allocate pixels using the
* decode info.

Powered by Google App Engine
This is Rietveld 408576698