summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2022-12-05 22:06:15 +0800
committer Riddle Hsu <riddlehsu@google.com> 2022-12-05 22:39:48 +0800
commit80737bf6605b3e8600a9b6373d4824e5d04050fd (patch)
tree2bbb8beecf969b749ed5c307fd23b380120f781b /libs/androidfw/ApkParsing.cpp
parent2a23c2e341e5211626b0b28c4cccfb3d10fddbc9 (diff)
Defer creation of input sink surface until sync completes
Currently with shell transition, isVisible() is true once visible is requested for launching activity. Then the input sink surface will be created when previous activity completes pause. But because the launching activity is in transition and the transaction is sync transaction, its surface operation is also deferred until the remote applies the sync transaction. In other words, the creation is too early and leads to lock contention such as blocking preparing starting window. With the sync state check, the timing of creating input sink surface will be similar as legacy transition, which is after the transition is ready, i.e. sync finished. That timing is usually less sensitive (contention) to transition latency. Bug: 260059642 Test: atest ActivityRecordInputSinkTests Test: Transition latency of OpenAppMicrobenchmark Change-Id: Id9719510c74296392e988abf8d48fe3af78026d3
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions