diff options
author | picksi@chromium.org <picksi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-28 13:42:09 +0000 |
---|---|---|
committer | picksi@chromium.org <picksi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-28 13:42:09 +0000 |
commit | 8a3f8a5c27f34143d38f48e9556828480effe323 (patch) | |
tree | 29b71efe6d01ed52f690a354ec979f63cbc2c0bd /content/common/android | |
parent | 67bfbce1a5b63fc56e5228e5711aa96882a3a08d (diff) | |
download | chromium_src-8a3f8a5c27f34143d38f48e9556828480effe323.zip chromium_src-8a3f8a5c27f34143d38f48e9556828480effe323.tar.gz chromium_src-8a3f8a5c27f34143d38f48e9556828480effe323.tar.bz2 |
Code previously duplicated three times has been wrapped into a function 'ResetScaleWithSpan()' for general good-practice and to reduce memory footprint.
Four divisions used for calculation of averages have been replaced by a single reciprocal generation and four multiplies for speed.
A repeated constant addition has been moved out of a for loop to improve speed and reduce (minor) rounding errors.
BUG=332418
Review URL: https://codereview.chromium.org/295903003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273201 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/android')
0 files changed, 0 insertions, 0 deletions