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

Commit 38448366 authored by Valerie Hau's avatar Valerie Hau
Browse files

Removing blocking from animation on main thread

Bug: 129130064
Test: build, boot, manual
Change-Id: I5b928049d5a89604f83d56cf3ff1691ca1aa5872
parent 1688f524
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3583,7 +3583,7 @@ void SurfaceFlinger::applyTransactionState(const Vector<ComposerState>& states,
    if (flags & eAnimation) {
        // For window updates that are part of an animation we must wait for
        // previous animation "frames" to be handled.
        while (mAnimTransactionPending) {
        while (!isMainThread && mAnimTransactionPending) {
            status_t err = mTransactionCV.waitRelative(mStateLock, s2ns(5));
            if (CC_UNLIKELY(err != NO_ERROR)) {
                // just in case something goes wrong in SF, return to the