diff options
author | Herb Derby <herb@google.com> | 2017-09-20 11:56:00 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-21 20:29:24 +0000 |
commit | c402b778d5707ac2f66c9f38d5bbc20fb79321b5 (patch) | |
tree | a44c07179a8bef6fda66177acc14d18ec5e4cd0b /src/core/SkBitmapProcState_utils.h | |
parent | 0e42586036c3fbd3c3092680df853a0c2e2e82fa (diff) |
Remove sk_64_isS32 and sk_64_asS32
This is an API change. I assume that only Skia uses these routines.
Change-Id: Iefc98fa5c0b83eb4f52c478e345fd99121ecb254
Reviewed-on: https://skia-review.googlesource.com/129440
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/core/SkBitmapProcState_utils.h')
-rw-r--r-- | src/core/SkBitmapProcState_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkBitmapProcState_utils.h b/src/core/SkBitmapProcState_utils.h index 4609ff34e7..ec35ca108d 100644 --- a/src/core/SkBitmapProcState_utils.h +++ b/src/core/SkBitmapProcState_utils.h @@ -50,7 +50,7 @@ static inline bool can_truncate_to_fixed_for_decal(SkFixed fx, // Promote to 64bit (48.16) to avoid overflow. const uint64_t lastFx = fx + sk_64_mul(dx, count - 1); - return sk_64_isS32(lastFx) && (unsigned)SkFixedFloorToInt(sk_64_asS32(lastFx)) < max; + return SkTFitsIn<int32_t>(lastFx) && (unsigned)SkFixedFloorToInt(SkTo<int32_t>(lastFx)) < max; } #endif /* #ifndef SkBitmapProcState_utils_DEFINED */ |