Index: bench/ChecksumBench.cpp |
diff --git a/bench/ChecksumBench.cpp b/bench/ChecksumBench.cpp |
index bac7bddc81187bcef4613ab43ea0900326239c83..cba9572aa330974529dbc85d67a6805a418c9859 100644 |
--- a/bench/ChecksumBench.cpp |
+++ b/bench/ChecksumBench.cpp |
@@ -9,12 +9,10 @@ |
#include "SkChecksum.h" |
#include "SkMD5.h" |
#include "SkRandom.h" |
-#include "SkSHA1.h" |
#include "SkTemplates.h" |
enum ChecksumType { |
kMD5_ChecksumType, |
- kSHA1_ChecksumType, |
kMurmur3_ChecksumType, |
}; |
@@ -42,7 +40,6 @@ protected: |
const char* onGetName() override { |
switch (fType) { |
case kMD5_ChecksumType: return "compute_md5"; |
- case kSHA1_ChecksumType: return "compute_sha1"; |
case kMurmur3_ChecksumType: return "compute_murmur3"; |
default: SK_ABORT("Invalid Type"); return ""; |
@@ -59,14 +56,6 @@ protected: |
md5.finish(digest); |
} |
} break; |
- case kSHA1_ChecksumType: { |
- for (int i = 0; i < loops; i++) { |
- SkSHA1 sha1; |
- sha1.update(reinterpret_cast<uint8_t*>(fData), sizeof(fData)); |
- SkSHA1::Digest digest; |
- sha1.finish(digest); |
- } |
- } break; |
case kMurmur3_ChecksumType: { |
for (int i = 0; i < loops; i++) { |
volatile uint32_t result = SkChecksum::Murmur3(fData, sizeof(fData)); |
@@ -84,5 +73,4 @@ private: |
/////////////////////////////////////////////////////////////////////////////// |
DEF_BENCH( return new ComputeChecksumBench(kMD5_ChecksumType); ) |
-DEF_BENCH( return new ComputeChecksumBench(kSHA1_ChecksumType); ) |
DEF_BENCH( return new ComputeChecksumBench(kMurmur3_ChecksumType); ) |