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

Commit f8d35e92 authored by Nathaniel Nifong's avatar Nathaniel Nifong
Browse files

Activate reduced shader mode in SkiaGlRenderEngine

Test: build with https://skia-review.googlesource.com/c/skia/+/416299 and use perfetto to count
shaders compiled in cache warming step, expect 51, not 83.

Bug: b/187535297

Change-Id: Iffd827ba8fbb6f6ec4fa961f11eb920b1a26bcc2
parent bba52f42
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -315,6 +315,7 @@ SkiaGLRenderEngine::SkiaGLRenderEngine(const RenderEngineCreationArgs& args, EGL
    GrContextOptions options;
    options.fDisableDriverCorrectnessWorkarounds = true;
    options.fDisableDistanceFieldPaths = true;
    options.fReducedShaderVariations = true;
    options.fPersistentCache = &mSkSLCacheMonitor;
    mGrContext = GrDirectContext::MakeGL(glInterface, options);
    if (useProtectedContext(true)) {