aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/shaders/gradients/Sk4fLinearGradient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shaders/gradients/Sk4fLinearGradient.cpp')
-rw-r--r--src/shaders/gradients/Sk4fLinearGradient.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/shaders/gradients/Sk4fLinearGradient.cpp b/src/shaders/gradients/Sk4fLinearGradient.cpp
index 0000fd9a15..8f061e2eee 100644
--- a/src/shaders/gradients/Sk4fLinearGradient.cpp
+++ b/src/shaders/gradients/Sk4fLinearGradient.cpp
@@ -10,6 +10,7 @@
#include "SkPaint.h"
#include <cmath>
+#include <utility>
namespace {
@@ -162,7 +163,8 @@ LinearGradient4fContext::shadeSpan(int x, int y, SkPMColor dst[], int count) {
bias1 = dither_cell[rowIndex + 1];
if (x & 1) {
- SkTSwap(bias0, bias1);
+ using std::swap;
+ swap(bias0, bias1);
}
}
@@ -262,7 +264,8 @@ LinearGradient4fContext::shadeSpanInternal(int x, int y, dstType dst[], int coun
dst += n;
if (n & 1) {
- SkTSwap(bias4f0, bias4f1);
+ using std::swap;
+ swap(bias4f0, bias4f1);
}
}
}