summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceComposerClient.cpp
diff options
context:
space:
mode:
author Marin Shalamanov <shalamanov@google.com> 2021-09-14 23:22:49 +0200
committer Marin Shalamanov <shalamanov@google.com> 2021-09-15 13:56:54 +0000
commit8cd8a9977fe55520ba0d0a2f576efec8a2e9c84d (patch)
tree8d84c4a5c4441357df25001860d7943732aeb866 /libs/gui/SurfaceComposerClient.cpp
parent880ca6d5e8d2d73bde500910c437c5020154e93f (diff)
RefreshRateConfigs: fix getMaxRefreshRateByPolicyLocked
If there are no layers which are requesting a non seamless switch getMaxRefreshRateByPolicyLocked should return the max refresh rate from the group of the default mode (and not the group of the current mode). This fixes a bug where when the display mode is never reset to default after we exit an app which has called setFrameRate with changeFrameRateStrategy=Always. This change should have no affect phones, because there all modes are in the same config group. Bug: 199270559 Test: atest MatchContentFrameRateTest SetFrameRateTest Test: atest RefreshRateConfigsTest Change-Id: I6ff200a85edf026b0d04d4a06a13995832ffdab4
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
0 files changed, 0 insertions, 0 deletions