commit | 20f7f173e05b60f541910d0c1da9850ac73e2958 | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Fri May 17 19:05:03 2013 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Fri May 17 19:05:03 2013 +0000 |
tree | 6d06f639a90e18a85b6188eed1a15854b96888fd | |
parent | d7c37425805d5909ed5601bf2fbf14d5c8b4c86b [diff] [blame] |
One SkTSearch to rule them all. Allow key to be of different type than the array. R=bungeman@google.com Review URL: https://codereview.chromium.org/15070011 git-svn-id: http://skia.googlecode.com/svn/trunk@9182 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/effects/GrTextureStripAtlas.h b/src/gpu/effects/GrTextureStripAtlas.h index 9ac356b..0148665 100644 --- a/src/gpu/effects/GrTextureStripAtlas.h +++ b/src/gpu/effects/GrTextureStripAtlas.h
@@ -120,8 +120,8 @@ /** * Compare two atlas rows by key, so we can sort/search by key */ - static int compareKeys(const AtlasRow* lhs, const AtlasRow* rhs) { - return lhs->fKey - rhs->fKey; + static bool KeyLess(const AtlasRow& lhs, const AtlasRow& rhs) { + return lhs.fKey < rhs.fKey; } #ifdef SK_DEBUG