Attempt to linearize the scroll deltas created in RenderWidgetHostViewBase
commitf6edd789acfaac00d0bd90adfb5f54813fd72fd3
authorvollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 6 Dec 2012 16:03:13 +0000 (6 16:03 +0000)
committervollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 6 Dec 2012 16:03:13 +0000 (6 16:03 +0000)
treea040782d39d70611396025609cd9e7eab89cd2e3
parent1f843583ba25275fdf9dea4e2321cfc12732da12
Attempt to linearize the scroll deltas created in RenderWidgetHostViewBase

We're currently shifting 10 pixels every time the smooth scroll gesture gets
serviced. If we get serviced at uneven intervals (which seems to happen), then
we get uneven scroll speeds. This patch attempts to force the scroll position
to be a linear function of time, though there may be jank if we generate the
events an uneven intervals.

BUG=162779

Review URL: https://chromiumcodereview.appspot.com/11416283

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171506 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.cc [new file with mode: 0644]
content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h [new file with mode: 0644]
content/browser/renderer_host/render_widget_host_impl.cc
content/browser/renderer_host/render_widget_host_impl.h
content/browser/renderer_host/render_widget_host_view_base.cc
content/content_browser.gypi