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;) |