Index: include/core/SkTypes.h |
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h |
index 7db3b190d75e04b871671a157f0480cf5284f06a..969aac77b66e2c9db9f82739634588fdcb9f5fa0 100644 |
--- a/include/core/SkTypes.h |
+++ b/include/core/SkTypes.h |
@@ -218,6 +218,7 @@ typedef uint8_t SkBool8; |
SK_API int32_t SkToS32(intmax_t); |
SK_API uint32_t SkToU32(uintmax_t); |
SK_API int SkToInt(intmax_t); |
+ SK_API unsigned SkToUInt(uintmax_t); |
#else |
#define SkToS8(x) ((int8_t)(x)) |
#define SkToU8(x) ((uint8_t)(x)) |
@@ -226,6 +227,7 @@ typedef uint8_t SkBool8; |
#define SkToS32(x) ((int32_t)(x)) |
#define SkToU32(x) ((uint32_t)(x)) |
#define SkToInt(x) ((int)(x)) |
+ #define SkToUInt(x) ((unsigned)(x)) |
#endif |
/** Returns 0 or 1 based on the condition |