DMD: enable frame rate override

Enable the frame rate override feature so the device could run at divisors
of the physical refresh rate.

Bug: 260875483
Change-Id: I9f3b518312a22a78158d286ebd96c7657ee34c40
Test: atest FrameRateOverrideHostTest
This commit is contained in:
Ady Abraham
2023-01-05 19:21:43 +00:00
parent 0b6a420958
commit 8e089ded33

View File

@@ -3081,10 +3081,10 @@ public class DisplayModeDirector {
@Override
public boolean supportsFrameRateOverride() {
return SurfaceFlingerProperties.enable_frame_rate_override().orElse(false)
return SurfaceFlingerProperties.enable_frame_rate_override().orElse(true)
&& !SurfaceFlingerProperties.frame_rate_override_for_native_rates()
.orElse(true)
&& SurfaceFlingerProperties.frame_rate_override_global().orElse(false);
.orElse(false)
&& SurfaceFlingerProperties.frame_rate_override_global().orElse(true);
}
private DisplayManager getDisplayManager() {