[Android] Provide a valid initial size for the overscroll effect
commit16194f430b5f1ed6a4fdf81e5baef77e22d3c8ff
authorjdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 4 Sep 2013 16:41:52 +0000 (4 16:41 +0000)
committerjdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 4 Sep 2013 16:41:52 +0000 (4 16:41 +0000)
treeedf45cb5cbc6c3c42152d8b99a1c3e1b80b6f52e
parent8707caab1cf84a32152b86a955b536a46cb6cdd1
[Android] Provide a valid initial size for the overscroll effect

Chrome on Android's overscroll effect is created on-demand, the first time a
user overscrolls.  Rather than wait for an update from the compositor to give
the effect a valid size, provide the created effect the last valid content size.
This prevents the initial overscroll hitch that may occur if the compositor is
otherwise inactive when the first overscroll update is received.

BUG=284523
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221200 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/android/overscroll_glow.cc
content/browser/android/overscroll_glow.h
content/browser/renderer_host/render_widget_host_view_android.cc