diff options
author | Raph Levien <raph@google.com> | 2012-07-18 15:57:15 -0700 |
---|---|---|
committer | Raph Levien <raph@google.com> | 2012-07-18 16:16:41 -0700 |
commit | 161ebab85d976320f156cb4e55140533ae15f92d (patch) | |
tree | b5f267b7c421ec40458a0051050537ca6bc5f150 /core/jni | |
parent | 4f3c8f7026d89a5d79e2621eb6428d5b9b1a25f3 (diff) | |
download | frameworks_base-161ebab85d976320f156cb4e55140533ae15f92d.zip frameworks_base-161ebab85d976320f156cb4e55140533ae15f92d.tar.gz frameworks_base-161ebab85d976320f156cb4e55140533ae15f92d.tar.bz2 |
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
Diffstat (limited to 'core/jni')
-rw-r--r-- | core/jni/android/graphics/TextLayoutCache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android/graphics/TextLayoutCache.h b/core/jni/android/graphics/TextLayoutCache.h index 96ba34a..f007f9a 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 |