commit | 83b8821aa6b046dae88d5e491e5e65aa5c50be0b | [log] [tgz] |
---|---|---|
author | Dominik Laskowski <domlaskowski@google.com> | Tue Dec 11 13:34:06 2018 -0800 |
committer | Dominik Laskowski <domlaskowski@google.com> | Tue Jan 15 20:55:42 2019 -0800 |
tree | 5815e73020d20c180977cd2383a4b6d8483260a3 | |
parent | def831d5515836621951a014ed7c3d935a97017b [diff] |
SF: Fix thread safety for resync callback The ResyncCallback for EventThreadConnection reads the HWComposer pointer and the HWComposer::DisplayData map concurrently with writes from the main thread. This CL factors that out into a getVsyncPeriod function protected by mStateLock. Bug: 74619554 Test: Boot and turn display on/off repeatedly Change-Id: I9143a5d35b139d44d1e4e7509598b8568e7739aa