aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkDashPathEffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/SkDashPathEffect.cpp')
-rw-r--r--src/effects/SkDashPathEffect.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/effects/SkDashPathEffect.cpp b/src/effects/SkDashPathEffect.cpp
index 830159253a..aa3803a95c 100644
--- a/src/effects/SkDashPathEffect.cpp
+++ b/src/effects/SkDashPathEffect.cpp
@@ -15,6 +15,8 @@
#include "SkTo.h"
#include "SkWriteBuffer.h"
+#include <utility>
+
SkDashImpl::SkDashImpl(const SkScalar intervals[], int count, SkScalar phase)
: fPhase(0)
, fInitialDashLength(-1)
@@ -93,7 +95,8 @@ static bool cull_line(SkPoint* pts, const SkStrokeRec& rec,
SkScalar maxX = pts[1].fX;
if (dx < 0) {
- SkTSwap(minX, maxX);
+ using std::swap;
+ swap(minX, maxX);
}
SkASSERT(minX < maxX);
@@ -114,7 +117,8 @@ static bool cull_line(SkPoint* pts, const SkStrokeRec& rec,
SkASSERT(maxX > minX);
if (dx < 0) {
- SkTSwap(minX, maxX);
+ using std::swap;
+ swap(minX, maxX);
}
pts[0].fX = minX;
pts[1].fX = maxX;
@@ -124,7 +128,8 @@ static bool cull_line(SkPoint* pts, const SkStrokeRec& rec,
SkScalar maxY = pts[1].fY;
if (dy < 0) {
- SkTSwap(minY, maxY);
+ using std::swap;
+ swap(minY, maxY);
}
SkASSERT(minY < maxY);
@@ -145,7 +150,8 @@ static bool cull_line(SkPoint* pts, const SkStrokeRec& rec,
SkASSERT(maxY > minY);
if (dy < 0) {
- SkTSwap(minY, maxY);
+ using std::swap;
+ swap(minY, maxY);
}
pts[0].fY = minY;
pts[1].fY = maxY;