Add an "isInsideVSync" check.
commit10288a72248cfb00d8b4ca92b0077c051fc7edf6
authorhush@chromium.org <hush@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 22 Aug 2014 22:12:13 +0000 (22 22:12 +0000)
committerhush@chromium.org <hush@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 22 Aug 2014 22:19:00 +0000 (22 22:19 +0000)
tree2fafcf8461f765f19d7f84a2abe792bd7af36d3a
parente12c2f34b42f0909419ea78d4fdff8845f51202e
Add an "isInsideVSync" check.

Prevent calling postInvalidateOnAnimate inside VSync handler, because
this will cause the invalidation to be one frame delayed.

BUG=394604

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

Cr-Commit-Position: refs/heads/master@{#291525}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291525 0039d316-1c4b-4281-b951-d872f2087c98
android_webview/java/src/org/chromium/android_webview/AwContents.java
ui/android/java/src/org/chromium/ui/VSyncMonitor.java
ui/android/java/src/org/chromium/ui/base/WindowAndroid.java