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

Commit d19875ff authored by Kevin Lubick's avatar Kevin Lubick
Browse files

[native] Use newer GrDirectContexts::MakeGL

This was added in https://skia-review.googlesource.com/c/skia/+/760017 and the old versions were deprecated.

Change-Id: I41ec95164e623e53451bcf050c55a136a2630ee8
Bug: b/293490566
parent a22dbac7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@
#include <GrTypes.h>
#include <android-base/stringprintf.h>
#include <gl/GrGLInterface.h>
#include <include/gpu/ganesh/gl/GrGLDirectContext.h>
#include <gui/TraceUtils.h>
#include <sync/sync.h>
#include <ui/DebugUtils.h>
@@ -299,10 +300,10 @@ SkiaRenderEngine::Contexts SkiaGLRenderEngine::createDirectContexts(
    LOG_ALWAYS_FATAL_IF(!glInterface.get(), "GrGLMakeNativeInterface() failed");

    SkiaRenderEngine::Contexts contexts;
    contexts.first = GrDirectContext::MakeGL(glInterface, options);
    contexts.first = GrDirectContexts::MakeGL(glInterface, options);
    if (supportsProtectedContentImpl()) {
        useProtectedContextImpl(GrProtected::kYes);
        contexts.second = GrDirectContext::MakeGL(glInterface, options);
        contexts.second = GrDirectContexts::MakeGL(glInterface, options);
        useProtectedContextImpl(GrProtected::kNo);
    }