summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Evan Rosky <erosky@google.com> 2022-07-13 20:48:40 -0700
committer Evan Rosky <erosky@google.com> 2022-07-13 20:48:40 -0700
commit1cf47ef3fc9ce2579d7f356dde2ea8c4f195b77e (patch)
tree7113463942ec2057de70ddd5f22435e15f9dd00e /libs/androidfw/AssetsProvider.cpp
parentaec1a526b9f1d5dedc0ba4e473caea646526dab8 (diff)
Prevent double-applying transactions
With BLAST, transactions contain buffers. Since we pass the transaction between processes, its possible to commit the transaction twice. If the transaction contains buffers, it will confuse surfaceflinger. Account for this by clearing transactions when they are sent to remotes. The merge case is non-trivial, though, because the remote may not actually merge. So, for that, we clear the transaction only when it is merged. Fixing this revealed a bug in an edge-case triggered by tapltests, so this fixes that as well. Bug: 238328090 Test: atest TaplTestsLauncher3 Change-Id: If30b0bd4e8fad4658365826a25eac38dc06af4c7
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions