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

Commit 0c5100d6 authored by Mathias Agopian's avatar Mathias Agopian Committed by Android Git Automerger
Browse files

am af872163: attempt to fix an ANR in various apps

* commit 'af87216387360a91c186e0c49869ab24326cc10d':
  attempt to fix an ANR in various apps
parents 035ca779 c9ca7011
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -425,12 +425,12 @@ void SurfaceFlinger::onMessageReceived(int32_t what)
        } break;

        case MessageQueue::REFRESH: {
            if (!mDirtyRegion.isEmpty()) {
            // NOTE: it is mandatory to call hw.compositionComplete()
            // after handleRefresh()
            const DisplayHardware& hw(graphicPlane(0).displayHardware());
            handleRefresh();

                const DisplayHardware& hw(graphicPlane(0).displayHardware());
            if (!mDirtyRegion.isEmpty()) {
                if (CC_UNLIKELY(mHwWorkListDirty)) {
                    // build the h/w work list
                    handleWorkList();
@@ -445,6 +445,8 @@ void SurfaceFlinger::onMessageReceived(int32_t what)
                    // pretend we did the post
                    hw.compositionComplete();
                }
            } else {
                hw.compositionComplete();
            }
        } break;
    }