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

Unified Diff: src/gpu/GrRedBlackTree.h

Issue 176903003: Add GrSet class built on top of RedBlackTree (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: GPU Support check Created 6 years, 10 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/GrOrderedSet.h ('k') | tests/GrOrderedSetTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrRedBlackTree.h
diff --git a/src/gpu/GrRedBlackTree.h b/src/gpu/GrRedBlackTree.h
index db36e32d0473b1ebbb7444845bc5af2580f39eb2..6f5775470801a75e4fe1fc0d3c0e48e7ddeda59c 100644
--- a/src/gpu/GrRedBlackTree.h
+++ b/src/gpu/GrRedBlackTree.h
@@ -23,6 +23,11 @@ public:
bool operator()(const T* a, const T* b) const { return *a < *b; }
};
+class GrStrLess {
+public:
+ bool operator()(const char* a, const char* b) const { return strcmp(a,b) < 0; }
+};
+
/**
* In debug build this will cause full traversals of the tree when the validate
* is called on insert and remove. Useful for debugging but very slow.
« no previous file with comments | « src/gpu/GrOrderedSet.h ('k') | tests/GrOrderedSetTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698