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

Unified Diff: include/core/SkTemplates.h

Issue 925613002: Spin off SkTHashTable, SkTHashMap, SkTHashSet (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: windows Created 5 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 | « gyp/tests.gypi ('k') | src/core/SkTHash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkTemplates.h
diff --git a/include/core/SkTemplates.h b/include/core/SkTemplates.h
index c26e4422b5584260783fee63c7cf38fa09cf95db..b18556b4524b8bb713b25747ff51929a97a8998e 100644
--- a/include/core/SkTemplates.h
+++ b/include/core/SkTemplates.h
@@ -254,6 +254,11 @@ public:
return fArray[index];
}
+ void swap(SkAutoTArray& other) {
+ SkTSwap(fArray, other.fArray);
+ SkDEBUGCODE(SkTSwap(fCount, other.fCount));
+ }
+
private:
T* fArray;
SkDEBUGCODE(int fCount;)
« no previous file with comments | « gyp/tests.gypi ('k') | src/core/SkTHash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698