Skip to content
Commit fb3879f2 authored by Marin Shalamanov's avatar Marin Shalamanov
Browse files

Epsilon comparison in RefreshRateRange constructor.

In DisplayModeDirector there may be votes for refresh rate ranges
which are within EPS of each other but do not intersect. For example
[0, 60] and [60+eps, 60+eps]. This CL adds an epsilon check in the
constructor of RefreshRateRange and a unit test for the described
scenario.

Fix: 148310029
Test: atest DisplayModeDirectorTest
Test: Manual with a device with PEAK_REFRESH_RATE = 60, from an app
setting the  preferred mode to a 60fps mode (which appears as 60+eps
on the device).

Change-Id: I24e225edc0d7e388897e9e30f5bce858ac56cb06
parent 2688fe61
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment