add saturate helper for float2int64

Bug: skia:
Change-Id: I157f8c047145874c4585ae870018163908389b26
Reviewed-on: https://skia-review.googlesource.com/102321
Reviewed-by: Mike Klein <mtklein@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h
index 50efbae..afab728 100644
--- a/include/core/SkTypes.h
+++ b/include/core/SkTypes.h
@@ -212,6 +212,8 @@
 #define SK_MinU32   0
 #define SK_NaN32    ((int) (1U << 31))
 #define SK_MaxSizeT SIZE_MAX
+static constexpr int64_t SK_MaxS64 = 0x7FFFFFFFFFFFFFFF;
+static constexpr int64_t SK_MinS64 = -SK_MaxS64;
 
 static inline int32_t SkLeftShift(int32_t value, int32_t shift) {
     return (int32_t) ((uint32_t) value << shift);