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

Unified Diff: tools/UrlDataManager.h

Issue 2208903002: Use sse4.2 CRC32 instructions to hash when available. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 4 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
« no previous file with comments | « tests/ChecksumTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/UrlDataManager.h
diff --git a/tools/UrlDataManager.h b/tools/UrlDataManager.h
index 49646ca607272b6ed4e80f786f4d65d6fe16678e..bae1dc7047c73c487b927b264d84d394a503e089 100644
--- a/tools/UrlDataManager.h
+++ b/tools/UrlDataManager.h
@@ -8,8 +8,8 @@
#ifndef SkUrlDataManager_DEFINED
#define SkUrlDataManager_DEFINED
-#include "SkChecksum.h"
#include "SkData.h"
+#include "SkOpts.h"
#include "SkString.h"
#include "SkTDynamicHash.h"
@@ -52,7 +52,7 @@ private:
}
static uint32_t Hash(const SkData& key) {
- return SkChecksum::Murmur3(key.bytes(), key.size());
+ return SkOpts::hash(key.bytes(), key.size());
}
};
@@ -62,7 +62,7 @@ private:
}
static uint32_t Hash(const SkString& key) {
- return SkChecksum::Murmur3(key.c_str(), strlen(key.c_str()));
+ return SkOpts::hash(key.c_str(), strlen(key.c_str()));
}
};
« no previous file with comments | « tests/ChecksumTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698