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

Commit 424d8325 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

* commit '7443c1f2':
  SF: Force empty sync transactions to apply anyway

Change-Id: Iaa91350ba6e499d145e7adfcc1874601fff33775
parents 7c1e3865 7443c1f2
Loading
Loading
Loading
Loading
+7 −0
Original line number 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) {
        // this triggers the transaction
        setTransactionFlags(transactionFlags);
+7 −0
Original line number 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) {
        // this triggers the transaction
        setTransactionFlags(transactionFlags);