diff options
Diffstat (limited to 'bench/nanobench.cpp')
-rw-r--r-- | bench/nanobench.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp index a156ad6ecc..8c89ec716c 100644 --- a/bench/nanobench.cpp +++ b/bench/nanobench.cpp @@ -14,7 +14,6 @@ #include "BitmapRegionDecoderBench.h" #include "CodecBench.h" #include "CodecBenchPriv.h" -#include "ColorCodecBench.h" #include "CrashHandler.h" #include "GMBench.h" #include "ProcStats.h" @@ -621,7 +620,6 @@ public: , fCurrentCodec(0) , fCurrentAndroidCodec(0) , fCurrentBRDImage(0) - , fCurrentColorImage(0) , fCurrentColorType(0) , fCurrentAlphaType(0) , fCurrentSubsetType(0) @@ -657,9 +655,6 @@ public: if (!CollectImages(FLAGS_images, &fImages)) { exit(1); } - if (!CollectImages(FLAGS_colorImages, &fColorImages)) { - exit(1); - } // Choose the candidate color types for image decoding fColorTypes.push_back(kN32_SkColorType); @@ -1048,20 +1043,6 @@ public: fCurrentColorType = 0; } - while (fCurrentColorImage < fColorImages.count()) { - fSourceType = "colorimage"; - fBenchType = "skcolorcodec"; - const SkString& path = fColorImages[fCurrentColorImage]; - fCurrentColorImage++; - sk_sp<SkData> encoded = SkData::MakeFromFileName(path.c_str()); - if (encoded) { - return new ColorCodecBench(SkOSPath::Basename(path.c_str()).c_str(), - std::move(encoded)); - } else { - SkDebugf("Could not read file %s.\n", path.c_str()); - } - } - return nullptr; } @@ -1106,7 +1087,6 @@ private: SkTArray<SkString> fSVGs; SkTArray<bool> fUseMPDs; SkTArray<SkString> fImages; - SkTArray<SkString> fColorImages; SkTArray<SkColorType, true> fColorTypes; SkScalar fZoomMax; double fZoomPeriodMs; @@ -1125,7 +1105,6 @@ private: int fCurrentCodec; int fCurrentAndroidCodec; int fCurrentBRDImage; - int fCurrentColorImage; int fCurrentColorType; int fCurrentAlphaType; int fCurrentSubsetType; |