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

Commit 54b7a80d authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Automerger Merge Worker
Browse files

Merge "Send drawFinish callback even if did not draw" into rvc-dev am:...

Merge "Send drawFinish callback even if did not draw" into rvc-dev am: 882ba30b am: 2b838868 am: f962bfd0 am: 4c30f3e0

Change-Id: I5940d47dc781056f5d08c0122333d25dd15dac3b
parents 3bc9399e 4c30f3e0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -440,6 +440,12 @@ void CanvasContext::draw() {

    if (dirty.isEmpty() && Properties::skipEmptyFrames && !surfaceRequiresRedraw()) {
        mCurrentFrameInfo->addFlag(FrameInfoFlags::SkippedFrame);
        // Notify the callbacks, even if there's nothing to draw so they aren't waiting
        // indefinitely
        for (auto& func : mFrameCompleteCallbacks) {
            std::invoke(func, mFrameNumber);
        }
        mFrameCompleteCallbacks.clear();
        return;
    }