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

Commit 1171be08 authored by Derek Sollenberger's avatar Derek Sollenberger Committed by Android (Google) Code Review
Browse files

Merge "CanvasContext::draw: flushAndSubmit when not drawing" into sc-dev

parents 97ff8e3e 7fbd0ad0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -482,6 +482,12 @@ nsecs_t CanvasContext::draw() {

    if (dirty.isEmpty() && Properties::skipEmptyFrames && !surfaceRequiresRedraw()) {
        mCurrentFrameInfo->addFlag(FrameInfoFlags::SkippedFrame);
        if (auto grContext = getGrContext()) {
            // Submit to ensure that any texture uploads complete and Skia can
            // free its staging buffers.
            grContext->flushAndSubmit();
        }

        // Notify the callbacks, even if there's nothing to draw so they aren't waiting
        // indefinitely
        waitOnFences();