summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Ben Widawsky <bwidawsk@google.com> 2024-09-16 14:52:59 -0700
committer Ben Widawsky <bwidawsk@google.com> 2024-10-03 16:30:48 +0000
commit59954c4866fa5871ef2e7338507807d5c43130d5 (patch)
tree714eb0f0c807712eb8800fa34a94d3af40cfa9bf /libs/gui/BufferQueueThreadState.cpp
parent00488b0849ed11b41dfc93c60ae4f9dc53e1116d (diff)
SF: Use VsyncSchedule's ID for EventThread
The existing code will take the first display that is hotplugged and set it as the PhysicalDisplayId associated with the EventThread's future vsync events. There isn't anything wrong with this in the current implementation because SurfaceFlinger is careful about removing/adding displays when pacesetter is changed. The EventThread is already associated with a specific VsyncSchedule. The VsyncSchedule already maintains the PhysicalDisplayId. Use that instead and make the code slightly less fragile. Bug: 352324977 Flag: EXEMPT refactor Test: presubmit Change-Id: I33d7da120289e5cf1127d783eae3011280bf65bd
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions