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

Commit 69a655ca authored by Mathias Agopian's avatar Mathias Agopian
Browse files

Revert "handle surfaces posts independently from composition"

This reverts commit 562f4b2c.

Change-Id: I96efe11c2f0494ed2d57fc580e49c598d913830e
parent 562f4b2c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -133,7 +133,8 @@ status_t MessageQueue::postMessage(
}

void MessageQueue::invalidate() {
    mHandler->signalInvalidate();
//    mHandler->signalInvalidate();
    mEvents->requestNextVsync();
}

void MessageQueue::refresh() {
+11 −6
Original line number Diff line number Diff line
@@ -407,7 +407,8 @@ void SurfaceFlinger::onMessageReceived(int32_t what)
{
    ATRACE_CALL();
    switch (what) {
        case MessageQueue::INVALIDATE: {
        case MessageQueue::REFRESH: {
//        case MessageQueue::INVALIDATE: {
            // if we're in a global transaction, don't do anything.
            const uint32_t mask = eTransactionNeeded | eTraversalNeeded;
            uint32_t transactionFlags = peekTransactionFlags(mask);
@@ -418,16 +419,20 @@ void SurfaceFlinger::onMessageReceived(int32_t what)
            // post surfaces (if needed)
            handlePageFlip();

            signalRefresh();

        } break;

        case MessageQueue::REFRESH: {
//            signalRefresh();
//
//        } break;
//
//        case MessageQueue::REFRESH: {

            handleRefresh();

            const DisplayHardware& hw(graphicPlane(0).displayHardware());

//            if (mDirtyRegion.isEmpty()) {
//                return;
//            }

            if (CC_UNLIKELY(mHwWorkListDirty)) {
                // build the h/w work list
                handleWorkList();