aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2018-06-11 11:56:57 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-11 19:40:44 +0000
commitbf45c706396041f038656da7560edd24cd1a6cda (patch)
treee0b929bcdea93b30c57f6189d4ab0908135c246f /include
parent7d10ed0c91754225eabde47b4d95bf0295fcaed0 (diff)
Clean up a few IWYU issues
Spun off from the SkTFitsIn CL. Change-Id: I686d680df6a36ebc02db3847ad5e2cedcbcd67ef Reviewed-on: https://skia-review.googlesource.com/134083 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/core/SkTypes.h2
-rw-r--r--include/private/SkPathRef.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h
index 06e101efbf..7945e12426 100644
--- a/include/core/SkTypes.h
+++ b/include/core/SkTypes.h
@@ -248,6 +248,8 @@ typedef uint32_t SkMSec;
*/
#ifdef __cplusplus
+#include <utility>
+
/** Generic swap function. Classes with efficient swaps should specialize this function to take
their fast path. This function is used by SkTSort. */
template <typename T> static inline void SkTSwap(T& a, T& b) {
diff --git a/include/private/SkPathRef.h b/include/private/SkPathRef.h
index 9ce1aeef2c..d9c8849334 100644
--- a/include/private/SkPathRef.h
+++ b/include/private/SkPathRef.h
@@ -17,6 +17,7 @@
#include "SkRect.h"
#include "SkRefCnt.h"
#include "SkTemplates.h"
+#include <limits>
class SkRBuffer;
class SkWBuffer;