| Index: include/core/SkFloatingPoint.h
|
| diff --git a/include/core/SkFloatingPoint.h b/include/core/SkFloatingPoint.h
|
| index 9fb343261b2b1278bbcba14b4f38aba88d9edb92..432f53d22aa07580a4a14d0f58d13e55214ac281 100644
|
| --- a/include/core/SkFloatingPoint.h
|
| +++ b/include/core/SkFloatingPoint.h
|
| @@ -91,6 +91,8 @@ static inline float sk_float_copysign(float x, float y) {
|
| #define sk_float_log(x) logf(x)
|
| #endif
|
|
|
| +#define sk_float_round(x) sk_float_floor((x) + 0.5f)
|
| +
|
| // can't find log2f on android, but maybe that just a tool bug?
|
| #ifdef SK_BUILD_FOR_ANDROID
|
| static inline float sk_float_log2(float x) {
|
|
|