diff options
Diffstat (limited to 'include/core/SkTypes.h')
-rw-r--r-- | include/core/SkTypes.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h index 261fcaea42..c112b0364f 100644 --- a/include/core/SkTypes.h +++ b/include/core/SkTypes.h @@ -248,12 +248,6 @@ typedef int S16CPU; typedef unsigned U16CPU; /** - * Meant to be faster than bool (doesn't promise to be 0 or 1, - * just 0 or non-zero - */ -typedef int SkBool; - -/** * Meant to be a small version of bool, for storage purposes. Will be 0 or 1 */ typedef uint8_t SkBool8; @@ -441,17 +435,6 @@ template <typename T> static inline const T& SkTPin(const T& value, const T& min return SkTMax(SkTMin(value, max), min); } -static inline uint32_t SkSetClearShift(uint32_t bits, bool cond, - unsigned shift) { - SkASSERT((int)cond == 0 || (int)cond == 1); - return (bits & ~(1 << shift)) | ((int)cond << shift); -} - -static inline uint32_t SkSetClearMask(uint32_t bits, bool cond, - uint32_t mask) { - return cond ? bits | mask : bits & ~mask; -} - /////////////////////////////////////////////////////////////////////////////// /** Use to combine multiple bits in a bitmask in a type safe way. |