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

Commit 4b6f3b4c authored by Valerie Hau's avatar Valerie Hau Committed by android-build-merger
Browse files

Merge "Removing blocking from animation on main thread" into qt-dev

am: e6aef129

Change-Id: I2b7517761c7f4c1564271fabfa0816a2177fd00d
parents 5e8e35ad e6aef129
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3586,7 +3586,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