summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Tiger Huang <tigerhuang@google.com> 2022-03-21 22:06:07 +0800
committer Tiger Huang <tigerhuang@google.com> 2022-03-22 23:42:47 +0800
commitdb407ef12de94280658d22835856377cc6b6b96a (patch)
tree146c5cfab025fd30fc37a16010b1d4481b339acd /libs/androidfw/StringPool.cpp
parentfb8919fac750b1686fbd7855f777a350bc6c5e4d (diff)
Introduce updateVisibility and updateLayout
This is a step to let the client layout its window locally. The ultimate goal is to reduce the jank while laying out the window. With the new AIDL methods, we can divide IWindowSession.relayout into: - IWindowSession#updateVisibility (synchronized binder call) - To get or update the surface - To fetch the latest factors about window-layout - Only called when the view visibility is changed - WindowLayout#computeFrames (local function call) - To compute the window frames - IWindowSession#updateLayout (one way binder call) - To report the result of layout to the server In this way, if the view visibility is not changed, the UI thread of the client won't be blocked by the binder call during relayout. The local layout project won't be done in a single CL. In order not to break the existing logic, this CL introduces a flag: LOCAL_LAYOUT. The flag will be enabled when the logic of local layout is ready. Bug: 161810301 Bug: 175861051 Test: presubmit (no behavior change) Change-Id: Ic4b2fc78a318f3a68e1ef8a35d8f3ab705856702
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions