diff options
author | mtklein <mtklein@chromium.org> | 2015-11-16 11:16:23 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-16 11:16:23 -0800 |
commit | 56da02502019cfbb817898e37e320539b9838e2b (patch) | |
tree | 05e55fc33a38394f582b3fae0f91b3f9affaacd3 /tests/ChecksumTest.cpp | |
parent | 504ce5dc772e14be2f5697b00ac82fcf82127763 (diff) |
Switch uses of SkChecksum::Compute to Murmur3.
SkChecksum::Compute is a very, very poorly distributed hash function.
This replaces all remaining uses with Murmur3.
The only interesting stuff is in src/gpu.
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/1d024a3c909ae5cefa5e8b339e2b52dc73ee85ac
Committed: https://skia.googlesource.com/skia/+/540e95483d285b555e9b1a73d18c16e7d7c0deba
Review URL: https://codereview.chromium.org/1436973003
Diffstat (limited to 'tests/ChecksumTest.cpp')
-rw-r--r-- | tests/ChecksumTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ChecksumTest.cpp b/tests/ChecksumTest.cpp index c095a5ac11..cf9d65c59e 100644 --- a/tests/ChecksumTest.cpp +++ b/tests/ChecksumTest.cpp @@ -18,7 +18,7 @@ static uint32_t murmur_noseed(const uint32_t* d, size_t l) { return SkChecksum:: DEF_TEST(Checksum, r) { // Algorithms to test. They're currently all uint32_t(const uint32_t*, size_t). typedef uint32_t(*algorithmProc)(const uint32_t*, size_t); - const algorithmProc kAlgorithms[] = { &SkChecksum::Compute, &murmur_noseed }; + const algorithmProc kAlgorithms[] = { &murmur_noseed }; // Put 128 random bytes into two identical buffers. Any multiple of 4 will do. const size_t kBytes = SkAlign4(128); |