Stay in floats as much as possible in SkTileGrid, particularly in insert.
authormtklein <mtklein@chromium.org>
Tue, 7 Oct 2014 18:46:39 +0000 (11:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Oct 2014 18:46:39 +0000 (11:46 -0700)
commit65be97d1a1eb5923b078bd1e7ec1e7da6e6427e2
treee2a02f05975a6a4786cfca1a08697bfd96cc07de
parentd99741cbbe449b3f27eb2eaada26abb38e5a568a
Stay in floats as much as possible in SkTileGrid, particularly in insert.

SkTileGrid::insert() is about 15% of recording time before
this CL, which reduces it to ~10%.  Next steps are looking
into some of the TODOs I've left myself, and vectorizing
the math.

Most of the win here comes from converting integer
divisions into float multiplies.

BUG=skia:1021

Review URL: https://codereview.chromium.org/615853007
src/core/SkTileGrid.cpp
src/core/SkTileGrid.h