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

Commit d10fe50a authored by wilsonshih's avatar wilsonshih
Browse files

Clean up splash_screen_view_sync_transaction flag

Bug: 428686064
Test: presubmit
Flag: EXEMPT flag cleanup
Change-Id: I6d515dbc58b4be085ebf7a266ae40930710f9872
parent a770e5d7
Loading
Loading
Loading
Loading
+1 −11
Original line number Original line Diff line number Diff line
@@ -4975,11 +4975,7 @@ public final class ActivityThread extends ClientTransactionHandler
        final SurfaceControl.Transaction transaction = new SurfaceControl.Transaction();
        final SurfaceControl.Transaction transaction = new SurfaceControl.Transaction();
        transaction.hide(startingWindowLeash);
        transaction.hide(startingWindowLeash);
        startingWindowLeash.release();
        startingWindowLeash.release();
        final boolean syncTransactionOnDraw =
                com.android.window.flags.Flags.splashScreenViewSyncTransaction();
        if (syncTransactionOnDraw) {
        decorView.getViewRootImpl().applyTransactionOnDraw(transaction);
        decorView.getViewRootImpl().applyTransactionOnDraw(transaction);
        }
        view.syncTransferSurfaceOnDraw();
        view.syncTransferSurfaceOnDraw();


        if (decorView.isHardwareAccelerated()) {
        if (decorView.isHardwareAccelerated()) {
@@ -4992,9 +4988,6 @@ public final class ActivityThread extends ClientTransactionHandler
                                int syncResult, long frame) {
                                int syncResult, long frame) {
                            return didProduceBuffer -> {
                            return didProduceBuffer -> {
                                Trace.instant(Trace.TRACE_TAG_VIEW, "transferSplashscreenView");
                                Trace.instant(Trace.TRACE_TAG_VIEW, "transferSplashscreenView");
                                if (!syncTransactionOnDraw) {
                                    transaction.apply();
                                }
                                // Tell server we can remove the starting window after frame commit.
                                // Tell server we can remove the starting window after frame commit.
                                decorView.postOnAnimation(() ->
                                decorView.postOnAnimation(() ->
                                        reportSplashscreenViewShown(token, view));
                                        reportSplashscreenViewShown(token, view));
@@ -5003,9 +4996,6 @@ public final class ActivityThread extends ClientTransactionHandler
                    });
                    });
        } else {
        } else {
            Trace.instant(Trace.TRACE_TAG_VIEW, "transferSplashscreenView_software");
            Trace.instant(Trace.TRACE_TAG_VIEW, "transferSplashscreenView_software");
            if (!syncTransactionOnDraw) {
                decorView.getViewRootImpl().applyTransactionOnDraw(transaction);
            }
            // Tell server we can remove the starting window after frame commit.
            // Tell server we can remove the starting window after frame commit.
            decorView.postOnAnimation(() -> reportSplashscreenViewShown(token, view));
            decorView.postOnAnimation(() -> reportSplashscreenViewShown(token, view));
        }
        }
+0 −11
Original line number Original line Diff line number Diff line
@@ -364,17 +364,6 @@ flag {
    bug: "382774299"
    bug: "382774299"
}
}


flag {
    name: "splash_screen_view_sync_transaction"
    namespace: "windowing_frontend"
    description: "Fixes flickering when transfer splash screen view to client."
    bug: "402644135"
    is_fixed_read_only: true
    metadata {
        purpose: PURPOSE_BUGFIX
    }
}

flag {
flag {
    namespace: "wear_frameworks"
    namespace: "wear_frameworks"
    name: "dispatch_first_keyguard_locked_state"
    name: "dispatch_first_keyguard_locked_state"
+1 −3
Original line number Original line Diff line number Diff line
@@ -619,9 +619,7 @@ class TaskOrganizerController extends ITaskOrganizerController.Stub {
            return null;
            return null;
        }
        }
        t.setPosition(leash, window.mSurfacePosition.x, window.mSurfacePosition.y);
        t.setPosition(leash, window.mSurfacePosition.x, window.mSurfacePosition.y);
        if (com.android.window.flags.Flags.splashScreenViewSyncTransaction()) {
        t.apply();
        t.apply();
        }
        return leash;
        return leash;
    }
    }