Stop using M_PI in ui/ code.
Use constants from base/numerics/math_constants.h instead. Then there is no need to add _USE_MATH_DEFINES for MSVC. Along the way, fix some nits: - Use the right math function variant for floats. - Mark more constants as constexpr. - Do IWYU. - Fix lint errors. Change-Id: I9b5efe6f19a6f568aede3ad8c80012a2a7c76ff4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1825893Reviewed-by:Avi Drissman <avi@chromium.org> Reviewed-by:
Navid Zolghadr <nzolghadr@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#700039}
Showing
Please register or sign in to comment