diff options
author | Ben Wagner <bungeman@google.com> | 2017-08-24 17:35:26 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-25 14:09:57 +0000 |
commit | 5563d8da7dbbb36d00298d97448e8de1e68ca916 (patch) | |
tree | 83b6737000d6c9bdb01705ea0e19cf4a3793968d /include/core/SkRect.h | |
parent | 75c7afb5af4dc02e226e35aa9ed9d76d2135ea28 (diff) |
Remove SkIsS16 and SkIsU16.
SkIsS16 can be replaced with SkTFitsIn<int16_t> and SkIsU16 is never
used.
Change-Id: I734f677149fab102cdb295a7b34faa3e3089134a
Reviewed-on: https://skia-review.googlesource.com/38600
Reviewed-by: Mike Klein <mtklein@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'include/core/SkRect.h')
-rw-r--r-- | include/core/SkRect.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/core/SkRect.h b/include/core/SkRect.h index a3819f424c..a2668d9604 100644 --- a/include/core/SkRect.h +++ b/include/core/SkRect.h @@ -10,6 +10,7 @@ #include "SkPoint.h" #include "SkSize.h" +#include "../private/SkTFitsIn.h" struct SkRect; @@ -116,8 +117,8 @@ struct SK_API SkIRect { } bool is16Bit() const { - return SkIsS16(fLeft) && SkIsS16(fTop) && - SkIsS16(fRight) && SkIsS16(fBottom); + return SkTFitsIn<int16_t>(fLeft) && SkTFitsIn<int16_t>(fTop) && + SkTFitsIn<int16_t>(fRight) && SkTFitsIn<int16_t>(fBottom); } /** Set the rectangle to (0,0,0,0) |