aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkEdge.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkEdge.h')
-rw-r--r--src/core/SkEdge.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/SkEdge.h b/src/core/SkEdge.h
index 7fc685136a..cc35baa8fc 100644
--- a/src/core/SkEdge.h
+++ b/src/core/SkEdge.h
@@ -13,6 +13,8 @@
#include "SkRect.h"
#include "SkTo.h"
+#include <utility>
+
// This correctly favors the lower-pixel when y0 is on a 1/2 pixel boundary
#define SkEdge_Compute_DY(top, y0) (SkLeftShift(top, 6) + 32 - (y0))
@@ -106,8 +108,9 @@ int SkEdge::setLine(const SkPoint& p0, const SkPoint& p1, int shift) {
int winding = 1;
if (y0 > y1) {
- SkTSwap(x0, x1);
- SkTSwap(y0, y1);
+ using std::swap;
+ swap(x0, x1);
+ swap(y0, y1);
winding = -1;
}