Loading libs/WindowManager/Shell/src/com/android/wm/shell/common/ScreenshotUtils.java +4 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ public class ScreenshotUtils { .setSourceCrop(crop) .setCaptureSecureLayers(true) .setAllowProtected(true) .setHintForSeamlessTransition(true) .build())); } Loading Loading @@ -78,6 +79,9 @@ public class ScreenshotUtils { mTransaction.setColorSpace(mScreenshot, buffer.getColorSpace()); mTransaction.reparent(mScreenshot, mParentSurfaceControl); mTransaction.setLayer(mScreenshot, mLayer); if (buffer.containsHdrLayers()) { mTransaction.setDimmingEnabled(mScreenshot, false); } mTransaction.show(mScreenshot); mTransaction.apply(); } Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/common/ScreenshotUtils.java +4 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ public class ScreenshotUtils { .setSourceCrop(crop) .setCaptureSecureLayers(true) .setAllowProtected(true) .setHintForSeamlessTransition(true) .build())); } Loading Loading @@ -78,6 +79,9 @@ public class ScreenshotUtils { mTransaction.setColorSpace(mScreenshot, buffer.getColorSpace()); mTransaction.reparent(mScreenshot, mParentSurfaceControl); mTransaction.setLayer(mScreenshot, mLayer); if (buffer.containsHdrLayers()) { mTransaction.setDimmingEnabled(mScreenshot, false); } mTransaction.show(mScreenshot); mTransaction.apply(); } Loading