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

Commit 279911fa authored by Sunny Goyal's avatar Sunny Goyal Committed by Android (Google) Code Review
Browse files

Merge "Creating the transaction on the UI thread" into tm-dev

parents 467f30db cdc111a1
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -75,6 +75,13 @@ public class SurfaceTransactionApplier extends ReleaseCheck {
        if (view == null) {
            return;
        }
        Transaction t = new Transaction();
        for (int i = params.length - 1; i >= 0; i--) {
            SurfaceParams surfaceParams = params[i];
            if (surfaceParams.surface.isValid()) {
                surfaceParams.applyTo(t);
            }
        }

        mLastSequenceNumber++;
        final int toApplySeqNo = mLastSequenceNumber;
@@ -85,13 +92,6 @@ public class SurfaceTransactionApplier extends ReleaseCheck {
                        .sendToTarget();
                return;
            }
            Transaction t = new Transaction();
            for (int i = params.length - 1; i >= 0; i--) {
                SurfaceParams surfaceParams = params[i];
                if (surfaceParams.surface.isValid()) {
                      surfaceParams.applyTo(t);
                }
            }
            mTargetViewRootImpl.mergeWithNextTransaction(t, frame);
            Message.obtain(mApplyHandler, MSG_UPDATE_SEQUENCE_NUMBER, toApplySeqNo, 0)
                    .sendToTarget();