summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author wilsonshih <wilsonshih@google.com> 2024-12-12 06:42:55 +0000
committer wilsonshih <wilsonshih@google.com> 2024-12-18 11:06:30 +0000
commit09efebff6f560f1bf9e2a757245dbb825f251cab (patch)
treecae74716a329fea2f90ed7fe708c64c792e0ca96 /libs/androidfw/StringPool.cpp
parent3be7f8723aa970f7451c4f58200f44d9923597d9 (diff)
Drawing app theme snapshot without hold wm lock.
A potential deadlock could happen when hold wm lock and require hardware buffer from createHardwareBitmap, the rendering thread can be blocked because it is waiting for dequeue buffer. Defer the create snapshot process in a supplier, to escape the wm lock if the snapshot should be draw by render thread. Also add a parameter allowAppTheme in captureSnapshot, then the caller can decide to not capture fake snapshot. Flag: com.android.window.flags.exclude_drawing_app_theme_snapshot_from_lock Bug: 373502791 Test: atest ActivitySnapshotControllerTests TransitionTests TaskSnapshotControllerTest Test: verify there won't block render thread while capture app snapshot for app theme mode. Change-Id: I7add8baecb0d068bac485fe9eee0c90f23d2f823
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions