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

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 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
« tests/GrUnitTests.cpp ('K') | « 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..b6377f2eb4d48afcca1c83847d4d3ae90c4b20d6 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
« tests/GrUnitTests.cpp ('K') | « tests/GrUnitTests.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698