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

Unified Diff: src/core/SkBitmapHeap.h

Issue 15070011: One SkTSearch to rule them all. Allow key to be of different type than the array. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fixes to compile on gcc Created 7 years, 7 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 | « include/core/SkTSearch.h ('k') | src/core/SkBitmapHeap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmapHeap.h
diff --git a/src/core/SkBitmapHeap.h b/src/core/SkBitmapHeap.h
index be99e191a4273c96298afa4a064b23c4dadbdefe..2547eeec74af9a3a93e12b6dd1b0be2433982b52 100644
--- a/src/core/SkBitmapHeap.h
+++ b/src/core/SkBitmapHeap.h
@@ -238,9 +238,9 @@ private:
uint32_t fStorageSlot; // slot of corresponding bitmap in fStorage.
/**
- * Compare two LookupEntry pointers, returning -1, 0, 1 for sorting.
+ * Compare two LookupEntry pointers for sorting and searching.
*/
- static int Compare(const LookupEntry* a, const LookupEntry* b);
+ static bool Less(const LookupEntry& a, const LookupEntry& b);
};
/**
« no previous file with comments | « include/core/SkTSearch.h ('k') | src/core/SkBitmapHeap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698