Loading core/java/com/android/internal/policy/TransitionAnimation.java +3 −2 Original line number Diff line number Diff line Loading @@ -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) { Loading Loading
core/java/com/android/internal/policy/TransitionAnimation.java +3 −2 Original line number Diff line number Diff line Loading @@ -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) { Loading