summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Marin Shalamanov <shalamanov@google.com> 2021-08-16 18:20:21 +0200
committer Marin Shalamanov <shalamanov@google.com> 2021-08-19 00:17:09 +0200
commit15a0fc65eedb633f4fbf988e4a319452ddaebdcc (patch)
tree97d015a0fd56b58f32f95928009ee4e0138467b5 /libs/gui/LayerState.cpp
parenteb03b0507fbef9e2bd772bd8f8f3f66dbed6f2a8 (diff)
Tune RefreshRateConfigs for fractional refresh rates
This CL contains several changes in order to tune RefrshRateConfigs for fractional refresh rates 1. TV devices support fractional refresh rates which are within 1/1001 of an integer, for example 59.94 and 60. This change reduces the tolerance we use when selecting the best refresh rate, so we can differtiate between the scores which 59.94 and 60 will get when a layer requests 60 (or 59.94). 2. Changes the threshold in getFrameRateDivider so it can differntiate between 59.94 and 60 fps. 3. Explicitly check if we're voting for a refresh rate in a fractional pair when calculating the vote for ExplicitExactOrMultiple. If so, vote with a contant score. 4. Finally the CL changes some log lines to make debugging easier and adds more comments. Bug: 196404992 Bug: 196191168 Test: atest libsurfaceflinger_unittest atest MatchContentFrameRateTest SetFrameRateTest Change-Id: I694e2aa5b16e9b4e0f6d1e8263b1ac35099605fd
Diffstat (limited to 'libs/gui/LayerState.cpp')
0 files changed, 0 insertions, 0 deletions