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

Unified Diff: dm/DM.cpp

Issue 1405053002: SkTHash: hash from fnptr to functor type (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | include/private/SkChecksum.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 4b32d2fc1a9549eb20d23f8eb2a2113ac8f339da..ccff84c906710ab4d9185c8feb3ebf82b818cf82 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -144,7 +144,11 @@ struct Gold : public SkString {
this->append(name);
this->append(md5);
}
- static uint32_t Hash(const Gold& g) { return SkGoodHash((const SkString&)g); }
+ struct Hash {
+ uint32_t operator()(const Gold& g) const {
+ return SkGoodHash()((const SkString&)g);
+ }
+ };
};
static SkTHashSet<Gold, Gold::Hash> gGold;
« no previous file with comments | « no previous file | include/private/SkChecksum.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698