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

Unified Diff: src/gpu/GrTMultiMap.h

Issue 222343002: SkTDynamicHash: remove need for Equals(const T&, const Key&) param. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 9 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.h ('k') | tests/DynamicHashTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTMultiMap.h
diff --git a/src/gpu/GrTMultiMap.h b/src/gpu/GrTMultiMap.h
index c8872143b38e6210aa76e728e25ac616b0feaa58..dfa7e5ec7d01e9fedb35019f3a67d8e3bdc925cd 100644
--- a/src/gpu/GrTMultiMap.h
+++ b/src/gpu/GrTMultiMap.h
@@ -18,17 +18,13 @@
template <typename T,
typename Key,
const Key& (GetKey)(const T&),
- uint32_t (Hash)(const Key&),
- bool (Equal)(const T&, const Key&)>
+ uint32_t (Hash)(const Key&)>
class GrTMultiMap {
struct ValueList {
explicit ValueList(T* value) : fValue(value), fNext(NULL) {}
static const Key& ListGetKey(const ValueList& e) { return GetKey(*e.fValue); }
static uint32_t ListHash(const Key& key) { return Hash(key); }
- static bool ListEqual(const ValueList& a, const Key& b) {
- return Equal(*a.fValue, b);
- }
T* fValue;
ValueList* fNext;
};
@@ -111,8 +107,7 @@ private:
SkTDynamicHash<ValueList,
Key,
ValueList::ListGetKey,
- ValueList::ListHash,
- ValueList::ListEqual> fHash;
+ ValueList::ListHash> fHash;
int fCount;
};
« no previous file with comments | « src/gpu/GrResourceCache.h ('k') | tests/DynamicHashTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698