diff options
author | 2015-01-16 07:27:46 -0800 | |
---|---|---|
committer | 2015-01-16 07:27:46 -0800 | |
commit | b50ced703030dfbda4fc3ef5e6ec9a52fc0405f8 (patch) | |
tree | 2dbcf1d1f88948afed2915d6e73765b067aa9509 /include/core/SkFloatingPoint.h | |
parent | 15fd47f8a07615a7f5d78581aee4c80ff9f17fd9 (diff) |
Revert of use log2(scale) to compute mip level (patchset #7 id:120001 of https://codereview.chromium.org/849333002/)
Reason for revert:
need more suppressions
Original issue's description:
> use log2(scale) to compute mip level
>
> BUG=skia:
>
> Committed: https://skia.googlesource.com/skia/+/15fd47f8a07615a7f5d78581aee4c80ff9f17fd9
TBR=robertphillips@google.com,jvanverth@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review URL: https://codereview.chromium.org/856783004
Diffstat (limited to 'include/core/SkFloatingPoint.h')
-rw-r--r-- | include/core/SkFloatingPoint.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/core/SkFloatingPoint.h b/include/core/SkFloatingPoint.h index 9fb343261b..1003b80b4f 100644 --- a/include/core/SkFloatingPoint.h +++ b/include/core/SkFloatingPoint.h @@ -91,16 +91,6 @@ static inline float sk_float_copysign(float x, float y) { #define sk_float_log(x) logf(x) #endif -// 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) { - const double inv_ln_2 = 1.44269504088896; - return (float)(log(x) * inv_ln_2); - } -#else - #define sk_float_log2(x) log2f(x) -#endif - #ifdef SK_BUILD_FOR_WIN #define sk_float_isfinite(x) _finite(x) #define sk_float_isnan(x) _isnan(x) |