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

Commit 2971cec3 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: 424d8325

* commit '424d8325':
  SF: Force empty sync transactions to apply anyway

Change-Id: I919dfae1ca1c7277029580911406daeb2d482f70
parents 718e7619 424d8325
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);