android scroller: Stop fling earlier.
commita12fd96dc1bfcf8bc6ca88d40515d7a58da2e16a
authorSadrul Habib Chowdhury <sadrul@chromium.org>
Mon, 29 Sep 2014 17:24:14 +0000 (29 13:24 -0400)
committerSadrul Habib Chowdhury <sadrul@chromium.org>
Mon, 29 Sep 2014 17:25:43 +0000 (29 17:25 +0000)
treebd129ccc8b4cb16466ebd6e9aafd98f0cdf8bdcb
parent9291444d2aa5e882e5a287d33f944e1c98f4c67c
android scroller: Stop fling earlier.

If the fling update is close to the final state, then stop the fling. The
threshold for this used to be 1e-5f, but change it to 1e-1f, since there
won't be any visual changes for subsequent fling-update steps.

BUG=none
R=jdduke@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#297198}
ui/gfx/android/scroller.cc
ui/gfx/android/scroller_unittest.cc
ui/gfx/gfx_tests.gyp