From 05f5ecaa7ab4d59206d0c75503a6b9b85dc8ef4b Mon Sep 17 00:00:00 2001 From: Leon Scroggins III Date: Mon, 7 Jun 2021 16:09:37 -0400 Subject: [PATCH] Increase the persistent storage size for SkSL Shaders Fixes: 190348616 Test: builds We're now using more complex shaders in more places. This allows us to store more of them. Change-Id: I1be3da0458c4b64f7082a2e1bc0d08b0824bbeba --- libs/hwui/pipeline/skia/ShaderCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/hwui/pipeline/skia/ShaderCache.cpp b/libs/hwui/pipeline/skia/ShaderCache.cpp index c482fc156e8b4..e7432ac5f216c 100644 --- a/libs/hwui/pipeline/skia/ShaderCache.cpp +++ b/libs/hwui/pipeline/skia/ShaderCache.cpp @@ -31,7 +31,7 @@ namespace skiapipeline { // Cache size limits. static const size_t maxKeySize = 1024; -static const size_t maxValueSize = 512 * 1024; +static const size_t maxValueSize = 2 * 1024 * 1024; static const size_t maxTotalSize = 1024 * 1024; ShaderCache::ShaderCache() {