Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Issue 2222073002: Use the frame time from Choreographer for computeScroll animation time. (Closed)

Created:
4 years, 4 months ago by hush (inactive)
Modified:
4 years, 4 months ago
Reviewers:
Theresa, boliu
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use the frame time from Choreographer for computeScroll animation time. This is to reduce jank in fling animations. See internal bug b/30674719 for more details. BUG=635607

Patch Set 1 #

Patch Set 2 : make it work for real #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -2 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/VSyncMonitor.java View 2 chunks +8 lines, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/WindowAndroid.java View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
hush (inactive)
PTAL
4 years, 4 months ago (2016-08-08 18:37:24 UTC) #3
boliu
lgtm in case anyone wonders why webview can't use the time from begin frame like ...
4 years, 4 months ago (2016-08-08 18:40:52 UTC) #4
hush (inactive)
Hello Theresa PTAL
4 years, 4 months ago (2016-08-08 20:07:35 UTC) #6
Theresa
lgtm
4 years, 4 months ago (2016-08-10 00:36:17 UTC) #7
hush (inactive)
Sorry people! I must have been dreaming while I was working on the first patch ...
4 years, 4 months ago (2016-08-10 22:45:16 UTC) #8
boliu
Well that in theory needs to be removed again, but I realized this case doesn't ...
4 years, 4 months ago (2016-08-10 22:48:24 UTC) #12
hush (inactive)
4 years, 4 months ago (2016-08-23 23:14:57 UTC) #17
On 2016/08/10 22:48:24, boliu wrote:
> Well that in theory needs to be removed again, but I realized this case
doesn't
> actually work:
> 
> > in case anyone wonders why webview can't use the time from begin frame like
> > chrome, it's because this wonderful api can (in theory) be called outside of
> > frames
> 
> If compute scroll is called outside of frames, it won't actually advance the
> animation with this implementation.
> 
> 1) that's probably not ok
> 2) even if it is ok, this implementation is wrong, because it should just use
> the latest timestamp from the last begin frame

okay, we just talked in person and figured that there wasn't any reasonable way
to do this, without breaking the case of app calling computeScroll() outside of
frames and then software onDraws to tick animations. I'm going to close this
bug.

Powered by Google App Engine
This is Rietveld 408576698