aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
Diffstat (limited to 'gm')
-rw-r--r--gm/complexclip3.cpp5
-rw-r--r--gm/dashcubics.cpp7
2 files changed, 9 insertions, 3 deletions
diff --git a/gm/complexclip3.cpp b/gm/complexclip3.cpp
index 7c5c672128..2415806863 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 @@ protected:
SkPath* secondClip = &clipComplex;
if (!fDoSimpleClipFirst) {
- SkTSwap<SkPath*>(firstClip, secondClip);
+ using std::swap;
+ swap(firstClip, secondClip);
}
SkPaint paint;
diff --git a/gm/dashcubics.cpp b/gm/dashcubics.cpp
index bfff3f3658..4c1f028326 100644
--- a/gm/dashcubics.cpp
+++ b/gm/dashcubics.cpp
@@ -14,6 +14,8 @@
#include "SkTArray.h"
#include "SkTrimPathEffect.h"
+#include <utility>
+
/*
* Inspired by http://code.google.com/p/chromium/issues/detail?id=112145
*/
@@ -128,8 +130,9 @@ protected:
start -= SkScalarFloorToScalar(start);
stop -= SkScalarFloorToScalar(stop);
if (start > stop) {
- SkTSwap(start, stop);
- SkTSwap(normalMode, invertedMode);
+ using std::swap;
+ swap(start, stop);
+ swap(normalMode, invertedMode);
}
}