Round up virtual display refresh rate

This semantics guarantees the virtual display will at least have the
specified refresh rate, e.g., if 60hz is requested on a 90hz display,
the virtual dislay will get a 90hz.

Bug: 266965278
Test: manual
Change-Id: If71a0c1153a3b26bee613e1ca6830c25b31d668b
This commit is contained in:
Huihong Luo
2023-03-08 22:11:14 +00:00
parent 6789d00256
commit 0f7fc4105c

View File

@@ -438,7 +438,7 @@ public final class VirtualDisplayConfig implements Parcelable {
*
* <p>For best results, specify a divisor of the physical refresh rate, e.g., 30 or 60 on
* a 120hz display. If an arbitrary refresh rate is specified, the rate will be rounded up
* down to a divisor of the physical display. If unset or zero, the virtual display will be
* to a divisor of the physical display. If unset or zero, the virtual display will be
* refreshed at the physical display refresh rate.
*
* @see Display#getRefreshRate()