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

Unified Diff: tests/HashCacheTest.cpp

Issue 88113002: Speed up GrResourceCache lookup by inlining GrBinHashKey comparisons (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: address review comments (capitalized statics) Created 7 years, 1 month 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 | « tests/GrUnitTests.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/HashCacheTest.cpp
diff --git a/tests/HashCacheTest.cpp b/tests/HashCacheTest.cpp
index bd28c44197e7523ed29130dcb62d9a0bfa4ce2e4..1a5c4701cd452a725b0b957aa2ac909e18392b87 100644
--- a/tests/HashCacheTest.cpp
+++ b/tests/HashCacheTest.cpp
@@ -39,21 +39,18 @@ public:
uint32_t getHash() const { return fKey; }
- static bool LT(const HashElement& entry, const HashKey& key) {
+ static bool LessThan(const HashElement& entry, const HashKey& key) {
return entry.fKey < key.fKey;
}
- static bool EQ(const HashElement& entry, const HashKey& key) {
+ static bool Equals(const HashElement& entry, const HashKey& key) {
return entry.fKey == key.fKey;
}
#ifdef SK_DEBUG
- static uint32_t GetHash(const HashElement& entry) {
- return entry.fKey;
- }
- static bool LT(const HashElement& a, const HashElement& b) {
+ static bool LessThan(const HashElement& a, const HashElement& b) {
return a.fKey < b.fKey;
}
- static bool EQ(const HashElement& a, const HashElement& b) {
+ static bool Equals(const HashElement& a, const HashElement& b) {
return a.fKey == b.fKey;
}
#endif
« no previous file with comments | « tests/GrUnitTests.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698