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

Unified Diff: include/core/SkString.h

Issue 12316141: Sort GL extension strings and search to find. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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 | « no previous file | include/gpu/gl/GrGLExtensions.h » ('j') | src/core/SkTSort.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkString.h
===================================================================
--- include/core/SkString.h (revision 7872)
+++ include/core/SkString.h (working copy)
@@ -244,4 +244,8 @@
/// Creates a new string and writes into it using a printf()-style format.
SkString SkStringPrintf(const char* format, ...);
+template <> inline void SkTSwap(SkString& a, SkString& b) {
reed1 2013/02/26 23:05:44 // Specialize SkTSwap (SkTypes.h) for SkString, so
bsalomon 2013/02/27 16:56:36 Done.
+ a.swap(b);
+}
+
#endif
« no previous file with comments | « no previous file | include/gpu/gl/GrGLExtensions.h » ('j') | src/core/SkTSort.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698