aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-12-27 12:47:25 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-27 12:47:25 -0800
commit9a878a00ef2c2eb72628c807be5969e2d8098317 (patch)
treedbd74fce2241f376ac2b3265e10bd9b04fdf499d /include
parent43a6f405e6aa0726fd18eb2b1575ac12ea093610 (diff)
remove cruft from SkTypes.h, including SkBool
Diffstat (limited to 'include')
-rw-r--r--include/core/SkTypes.h17
-rw-r--r--include/utils/SkInterpolator.h2
2 files changed, 1 insertions, 18 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.
diff --git a/include/utils/SkInterpolator.h b/include/utils/SkInterpolator.h
index 18203d05d0..9547cec8b2 100644
--- a/include/utils/SkInterpolator.h
+++ b/include/utils/SkInterpolator.h
@@ -59,7 +59,7 @@ public:
fFlags = SkToU8((fFlags & ~kReset) | (int)reset);
}
- Result timeToT(SkMSec time, SkScalar* T, int* index, SkBool* exact) const;
+ Result timeToT(SkMSec time, SkScalar* T, int* index, bool* exact) const;
protected:
enum Flags {