gfx: De-templatize the gfx::Point and gfx::PointF classes.
commit76b13bfe17a7bf70ea6a2763e1f8c68aca794f66
authordanakj <danakj@chromium.org>
Mon, 20 Oct 2014 17:08:01 +0000 (20 10:08 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 20 Oct 2014 17:08:26 +0000 (20 17:08 +0000)
treed8bca01a90eff7a538dd9f0691c8a1997774e672
parent54249ff53efa22453631d45b55da7dd744cac78e
gfx: De-templatize the gfx::Point and gfx::PointF classes.

This shrinks the android ChromeShell APK by 600 bytes, and improves
performance on compositor benchmarks.

Numbers can be found here https://crbug.com/407444#c15 but the summary
is this saves about 0.1ms cpu time on the JS_FULL_SCREEN_INVALIDATION
test in the thread_times.tough_compositor_cases test suite.

This also makes it easier to read and find functions in the Point and
PointF classes for developers.

R=sky
BUG=407444

Review URL: https://codereview.chromium.org/642343003

Cr-Commit-Position: refs/heads/master@{#300283}
ui/gfx/geometry/BUILD.gn
ui/gfx/geometry/point.cc
ui/gfx/geometry/point.h
ui/gfx/geometry/point_base.h [deleted file]
ui/gfx/geometry/point_f.cc
ui/gfx/geometry/point_f.h
ui/gfx/geometry/point_unittest.cc
ui/gfx/gfx.gyp