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

Commit fcddc8ea authored by Ady Abraham's avatar Ady Abraham Committed by Android (Google) Code Review
Browse files

Merge "SurfaceFlinger: run refresh directly after invalidate" into sc-dev

parents f5b97a8b d1b48539
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1879,7 +1879,12 @@ void SurfaceFlinger::onMessageInvalidate(int64_t vsyncId, nsecs_t expectedVSyncT
            // underestimated.
            mFrameStartTime = frameStart;
        }
        signalRefresh();

        // Run the refresh immediately after invalidate as there is no point going thru the message
        // queue again, and to ensure that we actually refresh the screen instead of handling
        // other messages that were queued us already in the MessageQueue.
        mRefreshPending = true;
        onMessageRefresh();
    }
}