Index: include/core/SkTemplates.h |
diff --git a/include/core/SkTemplates.h b/include/core/SkTemplates.h |
index 5005713b05a3a84dbb45af8a85002a132444d4db..76254e00ee2ac710b8ad63f260ac82274db99b80 100644 |
--- a/include/core/SkTemplates.h |
+++ b/include/core/SkTemplates.h |
@@ -143,6 +143,10 @@ public: |
return obj; |
} |
+ void swap(SkAutoTDelete* that) { |
+ SkTSwap(fObj, that->fObj); |
+ } |
+ |
private: |
T* fObj; |
}; |