Skip to content
Commit aa942048 authored by Igor Kraskevich's avatar Igor Kraskevich Committed by Chromium LUCI CQ
Browse files

Add ADPF support to WebView

The implementation is guarded by the WebViewEnableADPF feature, disabled by default.

When enabled, WebView passes the following threads to HWUI to be included in the existing ADPF session:
- GPU process: Viz, IO
- Browser process: IO
- Renderer process: Compositor, IO

Additionally, when the WebViewEnableADPFRendererMain feature is enabled, the Renderer Main thread is also reported to HWUI.

The threads from GPU and Browser process are trusted, and reported unconditionally. The threads from the Renderer process are not trusted and verified not to belong to the GPU or Browser process - this is the same as in the Chrome app.

The design doc (+ the HWUI-side CLs) are attached to the bug.

Testing: local tests with WebViewEnableADPF/WebViewEnableADPFRendererMain show a correct list of threads passed to `AwDrawFnImpl::ReportRenderingThreads` (based on debug logging) in a couple of different Android apps that use WebView.

Change-Id: I13d6724b5e9244558881aa7b4bcae312820b9354

Bug: b/329219352
Change-Id: I13d6724b5e9244558881aa7b4bcae312820b9354
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5344690


Reviewed-by: default avatarEric Seckler <eseckler@chromium.org>
Commit-Queue: Igor Kraskevich <kraskevich@google.com>
Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Reviewed-by: default avatarJonathan Ross <jonross@chromium.org>
Reviewed-by: default avatarDave Tapuska <dtapuska@chromium.org>
Reviewed-by: default avatarRichard (Torne) Coles <torne@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1281827}
parent af09fe24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment