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

Unified Diff: src/gpu/batches/GrAADistanceFieldPathRenderer.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 | « src/gpu/GrResourceCache.cpp ('k') | src/gpu/effects/GrTextureStripAtlas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/batches/GrAADistanceFieldPathRenderer.h
diff --git a/src/gpu/batches/GrAADistanceFieldPathRenderer.h b/src/gpu/batches/GrAADistanceFieldPathRenderer.h
index db17b07d360ddc3835e47e16e663b3890e048c2e..985b2f1537dc50d08ce1bb530e6d293486e796dd 100755
--- a/src/gpu/batches/GrAADistanceFieldPathRenderer.h
+++ b/src/gpu/batches/GrAADistanceFieldPathRenderer.h
@@ -13,7 +13,7 @@
#include "GrRect.h"
#include "GrShape.h"
-#include "SkChecksum.h"
+#include "SkOpts.h"
#include "SkTDynamicHash.h"
class GrContext;
@@ -81,7 +81,7 @@ private:
}
static inline uint32_t Hash(Key key) {
- return SkChecksum::Murmur3(key.data(), sizeof(uint32_t) * key.count32());
+ return SkOpts::hash(key.data(), sizeof(uint32_t) * key.count32());
}
};
« no previous file with comments | « src/gpu/GrResourceCache.cpp ('k') | src/gpu/effects/GrTextureStripAtlas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698