summaryrefslogtreecommitdiff
path: root/core/fxge/skia
diff options
context:
space:
mode:
authorBen Wagner <bungeman@google.com>2018-06-20 15:23:23 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-20 15:23:23 +0000
commitb3345feca2741cef2073d18da414237589528dd0 (patch)
treef9b53afb0b69adba23961bda7181a5dc74b70ae6 /core/fxge/skia
parente84e61852a4f3d8d7551d0eab3619916085fb557 (diff)
downloadpdfium-b3345feca2741cef2073d18da414237589528dd0.tar.xz
Replace SkTSwap with std::swap/swap.
Skia is moving to normalize on std::swap instead of its own SkTSwap. This removes the use of SkTSwap from PDFium so that Skia can remove it. Change-Id: If77708c1f363f4fd82a4c7905c7fbb2060900532 Reviewed-on: https://pdfium-review.googlesource.com/35470 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxge/skia')
-rw-r--r--core/fxge/skia/fx_skia_device.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fxge/skia/fx_skia_device.cpp b/core/fxge/skia/fx_skia_device.cpp
index 0329eac104..adc02fe8a4 100644
--- a/core/fxge/skia/fx_skia_device.cpp
+++ b/core/fxge/skia/fx_skia_device.cpp
@@ -2052,8 +2052,8 @@ bool CFX_SkiaDeviceDriver::DrawShading(const CPDF_ShadingPattern* pPattern,
// if the gradient is horizontal or vertical, modify the draw rectangle
if (pts[0].fX == pts[1].fX) { // vertical
if (pts[0].fY > pts[1].fY) {
- SkTSwap(pts[0].fY, pts[1].fY);
- SkTSwap(clipStart, clipEnd);
+ std::swap(pts[0].fY, pts[1].fY);
+ std::swap(clipStart, clipEnd);
}
if (clipStart)
skRect.fTop = SkTMax(skRect.fTop, pts[0].fY);
@@ -2061,8 +2061,8 @@ bool CFX_SkiaDeviceDriver::DrawShading(const CPDF_ShadingPattern* pPattern,
skRect.fBottom = SkTMin(skRect.fBottom, pts[1].fY);
} else if (pts[0].fY == pts[1].fY) { // horizontal
if (pts[0].fX > pts[1].fX) {
- SkTSwap(pts[0].fX, pts[1].fX);
- SkTSwap(clipStart, clipEnd);
+ std::swap(pts[0].fX, pts[1].fX);
+ std::swap(clipStart, clipEnd);
}
if (clipStart)
skRect.fLeft = SkTMax(skRect.fLeft, pts[0].fX);