Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e089ded authored by Ady Abraham's avatar Ady Abraham
Browse files

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
parent 0b6a4209
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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() {