diff options
| author | 2021-06-08 15:02:25 -0400 | |
|---|---|---|
| committer | 2021-06-09 14:48:05 +0000 | |
| commit | f8d35e92ca08cccb9cfadcc3cde4ce4cfd9b8494 (patch) | |
| tree | 069fb9000fbc335eea3f0e84612a5f82593d8920 | |
| parent | bba52f423ae347459a18c40dbc93887fcf4bb855 (diff) | |
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
| -rw-r--r-- | libs/renderengine/skia/SkiaGLRenderEngine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/renderengine/skia/SkiaGLRenderEngine.cpp b/libs/renderengine/skia/SkiaGLRenderEngine.cpp index 2d80c46461..18561da038 100644 --- a/libs/renderengine/skia/SkiaGLRenderEngine.cpp +++ b/libs/renderengine/skia/SkiaGLRenderEngine.cpp @@ -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)) { |