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

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

Merge "No longer create a GrVkInterface in the VulkanManger."

parents b6c4f6cd 4aa58670
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -327,8 +327,6 @@ void VulkanManager::initialize() {
        }
        return vkGetInstanceProcAddr(instance, proc_name);
    };
    auto interface =
        sk_make_sp<GrVkInterface>(getProc, mInstance, mDevice, extensionFlags);

    GrVkBackendContext backendContext;
    backendContext.fInstance = mInstance;
@@ -339,7 +337,7 @@ void VulkanManager::initialize() {
    backendContext.fMinAPIVersion = VK_MAKE_VERSION(1, 0, 0);
    backendContext.fExtensions = extensionFlags;
    backendContext.fFeatures = featureFlags;
    backendContext.fInterface = std::move(interface);
    backendContext.fGetProc = std::move(getProc);
    backendContext.fOwnsInstanceAndDevice = false;

    // create the command pool for the command buffers