Skip to content

Commit 161ebab

Browse files
committed
Increase text layout cache size in bytes
The mark positioning changes increase the number of bytes needed per glyph from 6 to 14. This patch compensates by allocating more total memory for the text layout cache. Change-Id: I3cf59547394a41779cf6e92e67688b0fdc85f1a3
1 parent 4f3c8f7 commit 161ebab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/jni/android/graphics/TextLayoutCache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
#define MB(s) s * 1024 * 1024
5858

5959
// Define the default cache size in Mb
60-
#define DEFAULT_TEXT_LAYOUT_CACHE_SIZE_IN_MB 0.250f
60+
#define DEFAULT_TEXT_LAYOUT_CACHE_SIZE_IN_MB 0.500f
6161

6262
// Define the interval in number of cache hits between two statistics dump
6363
#define DEFAULT_DUMP_STATS_CACHE_HIT_INTERVAL 100

0 commit comments

Comments
 (0)