summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Marin Shalamanov <shalamanov@google.com> 2021-08-16 18:20:21 +0200
committer Ady Abraham <adyabr@google.com> 2022-01-18 18:38:48 -0800
commite3e68adf683d76a83197ac921b7c2b3632117880 (patch)
treea765cea6d3288afed25175aa49fd651ea0db815d /libs/gui/BufferQueueThreadState.cpp
parentf8ce875c134b1e6ce08171c2cb4b4f3232a90b08 (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 Merged-In: I694e2aa5b16e9b4e0f6d1e8263b1ac35099605fd
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions