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

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

Merge "Use SkSurface::recordingContext instead of deprecated getContext"

parents 801fa114 0375fee9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -516,8 +516,9 @@ void VulkanManager::swapBuffers(VulkanSurface* surface, const SkRect& dirtyRect)
    flushInfo.fFinishedContext = destroyInfo;
    GrSemaphoresSubmitted submitted = bufferInfo->skSurface->flush(
            SkSurface::BackendSurfaceAccess::kPresent, flushInfo);
    ALOGE_IF(!bufferInfo->skSurface->getContext(), "Surface is not backed by gpu");
    bufferInfo->skSurface->getContext()->submit();
    GrDirectContext* context = GrAsDirectContext(bufferInfo->skSurface->recordingContext());
    ALOGE_IF(!context, "Surface is not backed by gpu");
    context->submit();
    if (submitted == GrSemaphoresSubmitted::kYes) {
        VkSemaphoreGetFdInfoKHR getFdInfo;
        getFdInfo.sType = VK_STRUCTURE_TYPE_SEMAPHORE_GET_FD_INFO_KHR;