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

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

Merge "Always specify that screenshots avoid dimming for transitions." into main

parents 45e9e644 5c8a523d
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1303,11 +1303,10 @@ public class TransitionAnimation {
            ScreenCapture.ScreenshotHardwareBuffer buffer) {
        t.setBuffer(layer, buffer.getHardwareBuffer());
        t.setDataSpace(layer, buffer.getColorSpace().getDataSpace());
        // Avoid showing dimming effect for HDR content when running animation.
        if (buffer.containsHdrLayers()) {
        // 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
        t.setDimmingEnabled(layer, false);
    }
    }

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