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

Commit 0211443f authored by wilsonshih's avatar wilsonshih
Browse files

Clean up safe_release_snapshot_aggressively flag

Bug: 423852658
Test: presubmit
Flag: EXEMPT flag cleanup
Change-Id: I49e102f464e137d0e66532993cd3bc020f461ca1
parent 52bce6cc
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -33,8 +33,6 @@ import android.os.SystemClock;
import android.view.Surface;
import android.view.WindowInsetsController;

import com.android.window.flags.Flags;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.function.Consumer;
@@ -395,9 +393,6 @@ public class TaskSnapshot implements Parcelable {
     * Only used in core.
     */
    public synchronized void setSafeRelease(Consumer<HardwareBuffer> releaser) {
        if (!Flags.safeReleaseSnapshotAggressively()) {
            return;
        }
        mSafeSnapshotReleaser = releaser;
    }

+0 −11
Original line number Diff line number Diff line
@@ -337,17 +337,6 @@ flag {
    }
}

flag {
    name: "safe_release_snapshot_aggressively"
    namespace: "windowing_frontend"
    description: "Protect task snapshot memory from premature release, which can occur when a local variable holds a reference while the snapshot is removed from the cache."
    bug: "238206323"
    is_fixed_read_only: true
    metadata {
        purpose: PURPOSE_BUGFIX
    }
}

flag {
    name: "scramble_snapshot_file_name"
    namespace: "windowing_frontend"