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

Commit bccd58cd authored by Greg Daniel's avatar Greg Daniel Committed by Android (Google) Code Review
Browse files

Merge "Have Skia Vulkan backend support wait-for-gpu flag on tests"

parents 268736e7 4f70887d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -603,6 +603,11 @@ static VkAccessFlags layoutToSrcAccessMask(const VkImageLayout layout) {
}

void VulkanManager::swapBuffers(VulkanSurface* surface) {
    if (CC_UNLIKELY(Properties::waitForGpuCompletion)) {
        ATRACE_NAME("Finishing GPU work");
        mDeviceWaitIdle(mBackendContext->fDevice);
    }

    VulkanSurface::BackbufferInfo* backbuffer = surface->mBackbuffers +
            surface->mCurrentBackbufferIndex;
    GrVkImageInfo* imageInfo;