commit | f8d35e92ca08cccb9cfadcc3cde4ce4cfd9b8494 | [log] [tgz] |
---|---|---|
author | Nathaniel Nifong <nifong@google.com> | Tue Jun 08 15:02:25 2021 -0400 |
committer | Nathaniel Nifong <nifong@google.com> | Wed Jun 09 14:48:05 2021 +0000 |
tree | 069fb9000fbc335eea3f0e84612a5f82593d8920 | |
parent | bba52f423ae347459a18c40dbc93887fcf4bb855 [diff] [blame] |
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
diff --git a/libs/renderengine/skia/SkiaGLRenderEngine.cpp b/libs/renderengine/skia/SkiaGLRenderEngine.cpp index 2d80c46..18561da 100644 --- a/libs/renderengine/skia/SkiaGLRenderEngine.cpp +++ b/libs/renderengine/skia/SkiaGLRenderEngine.cpp
@@ -315,6 +315,7 @@ GrContextOptions options; options.fDisableDriverCorrectnessWorkarounds = true; options.fDisableDistanceFieldPaths = true; + options.fReducedShaderVariations = true; options.fPersistentCache = &mSkSLCacheMonitor; mGrContext = GrDirectContext::MakeGL(glInterface, options); if (useProtectedContext(true)) {