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

Unified Diff: src/gpu/GrResourceCache.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/core/SkTDynamicHash.h ('k') | src/gpu/GrTMultiMap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrResourceCache.h
diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h
index b5953032f617b5e036fede5bffd1828b16e9dba6..26423ddc3dc9e60fbfe6c0eb3848b899e0745192 100644
--- a/src/gpu/GrResourceCache.h
+++ b/src/gpu/GrResourceCache.h
@@ -122,9 +122,6 @@ public:
static const GrResourceKey& GetKey(const GrResourceEntry& e) { return e.key(); }
static uint32_t Hash(const GrResourceKey& key) { return key.getHash(); }
- static bool Equal(const GrResourceEntry& a, const GrResourceKey& b) {
- return a.key() == b;
- }
#ifdef SK_DEBUG
void validate() const;
#else
@@ -321,8 +318,7 @@ private:
GrTMultiMap<GrResourceEntry,
GrResourceKey,
GrResourceEntry::GetKey,
- GrResourceEntry::Hash,
- GrResourceEntry::Equal> fCache;
+ GrResourceEntry::Hash> fCache;
// We're an internal doubly linked list
typedef SkTInternalLList<GrResourceEntry> EntryList;
« no previous file with comments | « src/core/SkTDynamicHash.h ('k') | src/gpu/GrTMultiMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698