From 7ae25c916d8ef60870472b820d9ef5ce551b1c9b Mon Sep 17 00:00:00 2001 From: David Reveman Date: Mon, 20 Apr 2020 13:07:28 -0400 Subject: [PATCH] [fuchsia] Adjust Skia GPU resource cache size (flutter/engine#17798) 16 MiB -> 28 MiB Same size as what would be used on a 1024x600 display if we allowed the common engine code to adjust this. Co-authored-by: David Reveman --- .../shell/platform/fuchsia/flutter/vulkan_surface_producer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/fuchsia/flutter/vulkan_surface_producer.cc b/engine/src/flutter/shell/platform/fuchsia/flutter/vulkan_surface_producer.cc index fc9f980fac..c69bfad6d3 100644 --- a/engine/src/flutter/shell/platform/fuchsia/flutter/vulkan_surface_producer.cc +++ b/engine/src/flutter/shell/platform/fuchsia/flutter/vulkan_surface_producer.cc @@ -32,7 +32,7 @@ constexpr int kGrCacheMaxCount = 8192; // "SkiaCacheBytes" field in the ("flutter", "SurfacePool") trace counter // (compare it to the bytes value here) // then you should consider increasing the size of the GPU resource cache. -constexpr size_t kGrCacheMaxByteSize = 16 * (1 << 20); +constexpr size_t kGrCacheMaxByteSize = 1024 * 600 * 12 * 4; } // namespace