From 8c8d02666d450d2ef4feaabfe67afd124f900f36 Mon Sep 17 00:00:00 2001 From: Caoruihong Date: Mon, 24 Apr 2023 03:20:07 +0000 Subject: [PATCH] fixed ee67146 from https://gitee.com/caoruihong/third_party_flutter/pulls/289 [WIP] test minikin layout cache Signed-off-by: Caoruihong --- engine/flutter/third_party/txt/src/minikin/Layout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/flutter/third_party/txt/src/minikin/Layout.cpp b/engine/flutter/third_party/txt/src/minikin/Layout.cpp index 1ce0712f..f8213268 100644 --- a/engine/flutter/third_party/txt/src/minikin/Layout.cpp +++ b/engine/flutter/third_party/txt/src/minikin/Layout.cpp @@ -164,7 +164,7 @@ class LayoutCache : private android::OnEntryRemoved { // TODO: eviction based on memory footprint; for now, we just use a constant // number of strings - static const size_t kMaxEntries = 5000; + static const size_t kMaxEntries = 50; }; class LayoutEngine { -- Gitee