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

Commit f6df7d76 authored by Sunny Goyal's avatar Sunny Goyal Committed by Automerger Merge Worker
Browse files

Merge "Creating the transaction on the UI thread" into tm-dev am: 279911fa

parents b2106640 279911fa
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();