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

Commit 8bc5dcd8 authored by John Reck's avatar John Reck
Browse files

Speed up HDR headroom transitions

Bug: 292124102
Test: adjusting desired HDR headroom & observing results
Change-Id: Ie9d3ab697de0bd934bb5fa1b0f098056eed136ab
parent 57cca107
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1973,6 +1973,11 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
                        || !isDisplayContentVisible || brightnessIsTemporary;
                if (!skipAnimation && BrightnessSynchronizer.floatEquals(
                        sdrAnimateValue, currentSdrBrightness)) {
                    // SDR brightness is unchanged, so animate quickly as this is only impacting
                    // a likely minority amount of display content
                    // ie, the highlights of an HDR video or UltraHDR image
                    slowChange = false;

                    // Going from HDR to no HDR; visually this should be a "no-op" anyway
                    // as the remaining SDR content's brightness should be holding steady
                    // due to the sdr brightness not shifting
+5 −0
Original line number Diff line number Diff line
@@ -1598,6 +1598,11 @@ final class DisplayPowerController2 implements AutomaticBrightnessController.Cal
                        || !isDisplayContentVisible || brightnessIsTemporary;
                if (!skipAnimation && BrightnessSynchronizer.floatEquals(
                        sdrAnimateValue, currentSdrBrightness)) {
                    // SDR brightness is unchanged, so animate quickly as this is only impacting
                    // a likely minority amount of display content
                    // ie, the highlights of an HDR video or UltraHDR image
                    slowChange = false;

                    // Going from HDR to no HDR; visually this should be a "no-op" anyway
                    // as the remaining SDR content's brightness should be holding steady
                    // due to the sdr brightness not shifting