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

Commit 70e89c9c authored by John Reck's avatar John Reck
Browse files

Ensure Dequeue/Queue duration is always set

Bug: 30662749
Change-Id: I35a4c26ce78536fc7a506ec2f92a8b9eecb12ec2
parent b11cc6cb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -578,6 +578,9 @@ void CanvasContext::draw() {
                = swap.queueDuration;
        mHaveNewSurface = false;
        mFrameNumber = -1;
    } else {
        mCurrentFrameInfo->set(FrameInfoIndex::DequeueBufferDuration) = 0;
        mCurrentFrameInfo->set(FrameInfoIndex::QueueBufferDuration) = 0;
    }

    // TODO: Use a fence for real completion?