summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Dominik Laskowski <domlaskowski@google.com> 2023-02-22 13:43:57 -0500
committer Dominik Laskowski <domlaskowski@google.com> 2023-03-10 14:45:00 -0500
commit14956dc43288483d823f07786349278f3e46cbe1 (patch)
tree3b9f0b60411b081a12a50e778909693001a1b6c5 /libs/ultrahdr/jpegencoderhelper.cpp
parent360ae78554f2d7232e8098988b1a7efd5ab91b97 (diff)
SF: Reset VsyncModulator on active display change
Between VsyncModulator::onRefreshRateChange{Initiated,Completed}, if the active display changes, the newly active display's VsyncConfiguration is propagated to VsyncModulator via updatePhaseConfiguration, which selects VsyncConfigType::Early due to the `mRefreshRateChangePending` of the now inactive display. Clear `mRefreshRateChangePending` and let `onRefreshRateChangeInitiated` set it for the newly active display if needed. In practice, the end result is the same due to the forced modeset for an active display that was just powered on. However, this will no longer be true with concurrent displays when the new pacesetter is already powered on. Bug: 255635821 Test: DisplayModeSwitchingTest.multiDisplay Change-Id: If264742a107cf5839d2c820eab23712778c1ae2e
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions