Stop using SkTSwap.
Use std::swap instead. It does not appear that any external user
specializes SkTSwap, but some may still use it. This removes all use in
Skia so that SkTSwap can later be removed in a smaller CL. After that
the <utility> include can be removed from SkTypes.h.
Change-Id: If03d4ee07dbecda961aa9f0dc34d171ef5168753
Reviewed-on: https://skia-review.googlesource.com/135578
Reviewed-by: Hal Canary <halcanary@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
diff --git a/gm/complexclip3.cpp b/gm/complexclip3.cpp
index 7c5c672..2415806 100644
--- a/gm/complexclip3.cpp
+++ b/gm/complexclip3.cpp
@@ -9,6 +9,8 @@
#include "SkCanvas.h"
#include "SkPath.h"
+#include <utility>
+
namespace skiagm {
constexpr SkColor gPathColor = SK_ColorYELLOW;
@@ -44,7 +46,8 @@
SkPath* secondClip = &clipComplex;
if (!fDoSimpleClipFirst) {
- SkTSwap<SkPath*>(firstClip, secondClip);
+ using std::swap;
+ swap(firstClip, secondClip);
}
SkPaint paint;