commit | 40986e3dc28f1d1ddd42dea3e582872ed3c95fa4 | [log] [tgz] |
---|---|---|
author | Ady Abraham <adyabr@google.com> | Thu Jan 26 13:36:28 2023 -0800 |
committer | Ady Abraham <adyabr@google.com> | Thu Jan 26 13:41:16 2023 -0800 |
tree | c1bd13db96ac41a38d4c0e7f06e8350b5ae077cd | |
parent | 796c571acc4c422f8f080d7bfce3cf43085774c8 [diff] |
DisplayModeDirector: fix an arithmetic error Add a float tolerance when calculating the divisor of a refresh rate. This is needed for example when the display refresh rate is 120.0001 and the max render frame rate is 120.00. Test: atest DisplayModeDirectorTest Bug: 266123304 Change-Id: Ic0c2c81612aaebded9fbeb47771a0a35e5e66212