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

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

[base] Use newer GrDirectContexts::MakeGL

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

Change-Id: I8f08431966cf6205a180626763915b402bec81d6
Bug: b/293490566
parent dd8255cf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
#include "RenderThread.h"

#include <GrContextOptions.h>
#include <include/gpu/ganesh/gl/GrGLDirectContext.h>
#include <android-base/properties.h>
#include <dlfcn.h>
#include <gl/GrGLInterface.h>
@@ -286,7 +287,7 @@ void RenderThread::requireGlContext() {
    auto glesVersion = reinterpret_cast<const char*>(glGetString(GL_VERSION));
    auto size = glesVersion ? strlen(glesVersion) : -1;
    cacheManager().configureContext(&options, glesVersion, size);
    sk_sp<GrDirectContext> grContext(GrDirectContext::MakeGL(std::move(glInterface), options));
    sk_sp<GrDirectContext> grContext(GrDirectContexts::MakeGL(std::move(glInterface), options));
    LOG_ALWAYS_FATAL_IF(!grContext.get());
    setGrContext(grContext);
}