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

Commit c09b8086 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: 882ba30b am: 2b838868

Change-Id: Ieb30a150d42ae722325909b594223d02248ff0d7
parents 382afed1 2b838868
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;
    }