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

Commit 864652f9 authored by Robert Carr's avatar Robert Carr Committed by android-build-merger
Browse files

Merge "SF: Force empty sync transactions to apply anyway" into nyc-dev am: 7443c1f2

am: 2d10b6df

* commit '2d10b6df':
  SF: Force empty sync transactions to apply anyway

Change-Id: I3cb8c29467fd5d882a2bb1ff664cbb340cfb98be
parents 718e7619 2d10b6df
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -2161,6 +2161,13 @@ void SurfaceFlinger::setTransactionState(
        }
        }
    }
    }


    // If a synchronous transaction is explicitly requested without any changes,
    // force a transaction anyway. This can be used as a flush mechanism for
    // previous async transactions.
    if (transactionFlags == 0 && (flags & eSynchronous)) {
        transactionFlags = eTransactionNeeded;
    }

    if (transactionFlags) {
    if (transactionFlags) {
        // this triggers the transaction
        // this triggers the transaction
        setTransactionFlags(transactionFlags);
        setTransactionFlags(transactionFlags);
+7 −0
Original line number Original line Diff line number Diff line
@@ -2177,6 +2177,13 @@ void SurfaceFlinger::setTransactionState(
        }
        }
    }
    }


    // If a synchronous transaction is explicitly requested without any changes,
    // force a transaction anyway. This can be used as a flush mechanism for
    // previous async transactions.
    if (transactionFlags == 0 && (flags & eSynchronous)) {
        transactionFlags = eTransactionNeeded;
    }

    if (transactionFlags) {
    if (transactionFlags) {
        // this triggers the transaction
        // this triggers the transaction
        setTransactionFlags(transactionFlags);
        setTransactionFlags(transactionFlags);