From 161ebab85d976320f156cb4e55140533ae15f92d Mon Sep 17 00:00:00 2001 From: Raph Levien Date: Wed, 18 Jul 2012 15:57:15 -0700 Subject: 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 --- core/jni/android/graphics/TextLayoutCache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/jni/android/graphics/TextLayoutCache.h b/core/jni/android/graphics/TextLayoutCache.h index 96ba34ac64e1..f007f9a34f08 100644 --- a/core/jni/android/graphics/TextLayoutCache.h +++ b/core/jni/android/graphics/TextLayoutCache.h @@ -57,7 +57,7 @@ #define MB(s) s * 1024 * 1024 // Define the default cache size in Mb -#define DEFAULT_TEXT_LAYOUT_CACHE_SIZE_IN_MB 0.250f +#define DEFAULT_TEXT_LAYOUT_CACHE_SIZE_IN_MB 0.500f // Define the interval in number of cache hits between two statistics dump #define DEFAULT_DUMP_STATS_CACHE_HIT_INTERVAL 100 -- cgit v1.2.3-59-g8ed1b