Update the CPU text cache sizes to be the same as their GPU equivalents
Bug: 130684261
Test: uibench jank tests
Change-Id: Ieb837afd76d1990c796baa9794ba54a83b8cd46f
diff --git a/libs/hwui/renderthread/CacheManager.h b/libs/hwui/renderthread/CacheManager.h
index b0286e8..9a5a00f 100644
--- a/libs/hwui/renderthread/CacheManager.h
+++ b/libs/hwui/renderthread/CacheManager.h
@@ -59,14 +59,17 @@
void reset(sk_sp<GrContext> grContext);
void destroy();
- void updateContextCacheSizes();
const size_t mMaxSurfaceArea;
sk_sp<GrContext> mGrContext;
int mMaxResources = 0;
- size_t mMaxResourceBytes = 0;
- size_t mBackgroundResourceBytes = 0;
+ const size_t mMaxResourceBytes;
+ const size_t mBackgroundResourceBytes;
+
+ const size_t mMaxGpuFontAtlasBytes;
+ const size_t mMaxCpuFontCacheBytes;
+ const size_t mBackgroundCpuFontCacheBytes;
struct PipelineProps {
const void* pipelineKey = nullptr;