New issue
Advanced search Search tips

Issue 799570 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Feature



Sign in to add a comment

vsync aligned input and webview

Project Member Reported by boliu@chromium.org, Jan 5 2018

Issue description

prompted by internal thread discussing clean ups after vsync aligned input, which has shipped everywhere except webview. Can we do something about webview, especially to not block any optimizations enabled by these follow up changes :)

Restrictions on webview, both due to apps can directly call WebView.onTouchEvent with synthetic events:
1) We can't enable unbuffered input (call View.requestUnbufferedDispatch) on the webview. I don't know what would happen when that's called on a "fake" events that's not actually from the window..
2) Unaligned input is always a possibility, ie app can call onTouchEvent whenever it likes.

Is there downside to using the buffered input path in chromium even if input is already buffered by android already?

Assuming no to that question, then I'm willing to bet apps won't care if we buffer synthetic events for another frame if input arrived after begin frame. So we could just try enabling this and see if anyone complains.
 

Comment 1 Deleted

Comment 2 by danakj@chromium.org, Feb 22 2018

Status: Available (was: Untriaged)

Comment 3 by boliu@chromium.org, Feb 22 2018

ping dtapuska for comments on this plan I guess?

Sign in to add a comment