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

Commit 9e55b808 authored by Alec Mouri's avatar Alec Mouri Committed by Android (Google) Code Review
Browse files

Merge "Don't unconditionally disable dimming for transitions" into main

parents 892a334b 289c907d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1304,9 +1304,10 @@ public class TransitionAnimation {
        t.setBuffer(layer, buffer.getHardwareBuffer());
        t.setDataSpace(layer, buffer.getColorSpace().getDataSpace());
        // Avoid showing dimming effect for HDR content when running animations.
        // TODO(b/298219334): Only do this if we know we already dimmed in the screenshot
        if (buffer.containsHdrLayers()) {
            t.setDimmingEnabled(layer, false);
        }
    }

    /** Returns whether the hardware buffer passed in is marked as protected. */
    public static boolean hasProtectedContent(HardwareBuffer hardwareBuffer) {