diff options
Diffstat (limited to 'src/gpu/GrTessellator.cpp')
-rw-r--r-- | src/gpu/GrTessellator.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/GrTessellator.cpp b/src/gpu/GrTessellator.cpp index 6490c5b73a..2dd82a0892 100644 --- a/src/gpu/GrTessellator.cpp +++ b/src/gpu/GrTessellator.cpp @@ -17,7 +17,8 @@ #include "SkTDPQueue.h" #include <algorithm> -#include <stdio.h> +#include <cstdio> +#include <utility> /* * There are six stages to the basic algorithm: @@ -1682,7 +1683,8 @@ void reconnect(Edge* edge, Vertex* src, Vertex* dst, Comparator& c) { return; } if (c.sweep_lt(edge->fBottom->fPoint, edge->fTop->fPoint)) { - SkTSwap(edge->fTop, edge->fBottom); + using std::swap; + swap(edge->fTop, edge->fBottom); edge->fWinding *= -1; } edge->recompute(); |