summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Dominik Laskowski <domlaskowski@google.com> 2023-03-14 12:25:36 -0400
committer Dominik Laskowski <domlaskowski@google.com> 2023-05-09 16:50:56 -0400
commit66295432b05a951bc6e6dcedc9ccedc3aeb2c0c4 (patch)
treeffa273d2cef12331fdd76f63a6d73660b2891f34 /libs/gui/BufferQueueThreadState.cpp
parent008bec0bd04fb1df0273545c5958c4e596d64eb0 (diff)
SF: Simplify Scheduler's hardware VSYNC delegate
As a step toward hiding implementation details of how Scheduler handles changes in a display's power mode (e.g. toggling of hardware/synthetic VSYNC), move and rename SurfaceFlinger::setVsyncEnabled to Scheduler:: onHardwareVsyncRequest. This hides setPendingHardwareVsyncState. (getPendingHardwareVsyncState will be moved to Scheduler later.) Store the per-display hal::PowerMode in Scheduler. On power mode change in SurfaceFlinger::setPowerModeInternal, update the Scheduler for every display, not just the active display. Inject the delegate into VsyncSchedule's constructor, instead of passing the (partly unrelated) ISchedulerCallback to several member functions. Bug: 271431077 Bug: 241286146 Bug: 255635821 Bug: 241285191 Test: FoldableTest Change-Id: I157b0895a77f055763f86dd21602d0dac13622da
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions