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

Commit 2fc49118 authored by Kevin Lubick's avatar Kevin Lubick
Browse files

[native] Use newer GrDirectContexts::MakeVulkan

This was added in http://review.skia.org/764516 and the old versions were deprecated.

This should not change any functionality as the deprecated APIs call the new APIs.

Change-Id: I78c0f3b1a14995d9ba6122ea5e93032bcd4f9573
Bug: b:293490566
parent a387c08f
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
#include <GrContextOptions.h>
#include <vk/GrVkExtensions.h>
#include <vk/GrVkTypes.h>
#include <include/gpu/ganesh/vk/GrVkDirectContext.h>

#include <android-base/stringprintf.h>
#include <gui/TraceUtils.h>
@@ -603,10 +604,10 @@ SkiaRenderEngine::Contexts SkiaVkRenderEngine::createDirectContexts(
    sSetupVulkanInterface();

    SkiaRenderEngine::Contexts contexts;
    contexts.first = GrDirectContext::MakeVulkan(sVulkanInterface.getBackendContext(), options);
    contexts.first = GrDirectContexts::MakeVulkan(sVulkanInterface.getBackendContext(), options);
    if (supportsProtectedContentImpl()) {
        contexts.second =
                GrDirectContext::MakeVulkan(sProtectedContentVulkanInterface.getBackendContext(),
                GrDirectContexts::MakeVulkan(sProtectedContentVulkanInterface.getBackendContext(),
                                             options);
    }