summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Vladimir Komsiyski <vladokom@google.com> 2025-03-11 15:55:00 +0100
committer Vladimir Komsiyski <vladokom@google.com> 2025-03-11 16:08:22 +0100
commit78ad38417b06c0ffac9d17f1985d08561dd9bc6d (patch)
tree4a614289024a93d6c5f780a6c2a52795c3ece83d /api/api.go
parent0dcce162c2430d3c3881434e86473ede1d46df12 (diff)
Fix the race in per display brightness overrides.
RootWindowContainer#performSurfacePlacementNoTrace: 1. Clear the current overrides 2. Set the new overrides 3. Post the overrides on the handler thread With the per-display handling of brightness overrides, we pass an object to the handler thread instead of a primitive integer. It's the same object as the RootWindowContainer field, so it may be cleared during the next performSurfacePlacement call before the handler thread had the chance to send it out. The fix is to simply send a copy of the overrides to the handler thread Technically this is a pre-existing issue but didn't cause any problems because only the tag was lost and not the brightness value (as it was a primitive int and was copied anyway) Fix: 382323783 Test: manual Flag: EXEMPT bugfix Change-Id: Ia08a18af9d6921c1421c84d812d21af52a8f6478
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions