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. |