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

Commit 31e7fc3c authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Remove sync_screen_capture flag

Test: presubmit
Flag: EXEMPT flag cleanup
Bug: 439061338
Change-Id: I37f7e908efb12db30c49c72892eabede232bc5a1
parent f839b645
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -35,8 +35,6 @@ import android.window.ScreenCapture.ScreenCaptureParams.CaptureMode;
import android.window.ScreenCapture.ScreenCaptureParams.ProtectedContentPolicy;
import android.window.ScreenCapture.ScreenCaptureParams.SecureContentPolicy;

import com.android.window.flags.Flags;

import libcore.util.NativeAllocationRegistry;

import java.util.concurrent.CountDownLatch;
@@ -160,7 +158,7 @@ public class ScreenCaptureInternal {
    public static ScreenshotHardwareBuffer captureLayers(LayerCaptureArgs captureArgs) {
        SynchronousScreenCaptureListener syncScreenCapture = createSyncCaptureListener();
        int status = nativeCaptureLayers(captureArgs, syncScreenCapture.mNativeObject,
                Flags.syncScreenCapture());
                /* sync */ true);
        if (status != 0) {
            return null;
        }
+0 −8
Original line number Diff line number Diff line
@@ -47,14 +47,6 @@ flag {
    bug: "304574518"
}

flag {
    namespace: "window_surfaces"
    name: "sync_screen_capture"
    description: "Create a screen capture API that blocks in SurfaceFlinger"
    is_fixed_read_only: true
    bug: "321263247"
}

flag {
    namespace: "window_surfaces"
    name: "set_sc_properties_in_client"