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

Commit f560a753 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "In VuklanManager make sure we have a valid semaphore context before...

Merge "In VuklanManager make sure we have a valid semaphore context before destroying it." into sc-dev
parents defab570 e8dc397b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -579,7 +579,9 @@ void VulkanManager::swapBuffers(VulkanSurface* surface, const SkRect& dirtyRect)
        std::lock_guard<std::mutex> lock(mGraphicsQueueMutex);
        mQueueWaitIdle(mGraphicsQueue);
    }
    if (mDestroySemaphoreContext) {
        destroy_semaphore(mDestroySemaphoreContext);
    }

    surface->presentCurrentBuffer(dirtyRect, fenceFd);
    mSwapSemaphore = VK_NULL_HANDLE;