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

Commit 50bd5fc1 authored by Ady Abraham's avatar Ady Abraham Committed by Automerger Merge Worker
Browse files

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/13831625

Change-Id: I77a69ec154cc394cb3653f20928e30cbb4ad05a5
parents d0a5c6bd fcddc8ea
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();
    }
}