commit | ff436617d8f11297f0eff93ddd49fb9022d0843b | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Feb 27 19:07:32 2013 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Feb 27 19:07:32 2013 +0000 |
tree | ede5235583e98991ed75f5fece72137ad0711115 | |
parent | f0e92f3814677084e8d61f6c83f5625fa6c4780c [diff] [blame] |
Sort GL extension strings and search to find. Review URL: https://codereview.chromium.org/12316141 git-svn-id: http://skia.googlecode.com/svn/trunk@7889 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h index cbba50c..ae27089 100644 --- a/include/core/SkTypes.h +++ b/include/core/SkTypes.h
@@ -276,6 +276,8 @@ return (n | (0-n)) >> 31; } +/** Generic swap function. Classes with efficient swaps should specialize this function to take + their fast path. This function is used by SkTSort. */ template <typename T> inline void SkTSwap(T& a, T& b) { T c(a); a = b;