diff options
| author | 2023-06-29 16:26:30 +0000 | |
|---|---|---|
| committer | 2023-06-29 23:00:47 +0000 | |
| commit | 215c18cfc83c2a07e27e9f2e7d1556b272f9e88d (patch) | |
| tree | 687e264f90e43155814520af734a269eafdc686e /libs/androidfw/FileStream.cpp | |
| parent | 7baeec3cac767d5e9fccedef01d248a28cf75422 (diff) | |
Use passed in Transaction when creating bounds layer in VRI
When the bounds layer is created, the visibility and initial bounds are set
using a new transaction that is applied immediately. This can cause a
race condition because the initial bounds are sent using a different
apply token than the buffer updates. When the crop for the bounds layer is
updated, that is sent in sync with the BBQ frame which has a separate
apply token. This means the updated bounds can be applied before the
intial bounds, causing unexpected behavior.
Test: testCropWithChildBoundingInsets 100 times
Bug: 288339794
Change-Id: I61776050e99d8fa9524a7b6e4fe6034c171d49a7
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions