Make Sk32ToBool inline again to silence compiler warning.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2007753003 Review-Url: https://codereview.chromium.org/2007753003
This commit is contained in:
parent
5d04fda877
commit
7a5bcc5f59
@ -369,7 +369,7 @@ typedef uint32_t SkMSec;
|
||||
|
||||
/** Faster than SkToBool for integral conditions. Returns 0 or 1
|
||||
*/
|
||||
static constexpr int Sk32ToBool(uint32_t n) {
|
||||
static inline constexpr int Sk32ToBool(uint32_t n) {
|
||||
return (n | (0-n)) >> 31;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user