summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Chavi Weingarten <chaviw@google.com> 2023-06-22 18:20:11 +0000
committer Chavi Weingarten <chaviw@google.com> 2023-06-28 18:27:25 +0000
commit536973fda8105eac13a7f02aeb2b91aa4280c229 (patch)
treea1061cd57c8e13c66bde5ea7274a7fe773b15c61 /libs/androidfw/ApkParsing.cpp
parent87650418b07367be6ff76bdc4fc610a15dc7162a (diff)
Post reportDrawFinished to the UI thread if running in system
If VRI is running in the system process, the call to finishDrawing will not result in an IPC call and therefore will run on whatever thread SurfaceSyncGroup finished on. This is normally going to be the RenderThread. This could result in a deadlock because the finishDrawing is now blocking any additional calls to RT, which is unexpected behavior. Instead, post to the UI thread when the VRI is running in system process to ensure RT is unblocked. Test: Presubmit Bug: 286355097 Change-Id: Id8bd8eeced99f5228d7655382e0c043d03e0c196
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions