summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
commit161ebab85d976320f156cb4e55140533ae15f92d (patch)
treeb5f267b7c421ec40458a0051050537ca6bc5f150
parent4f3c8f7026d89a5d79e2621eb6428d5b9b1a25f3 (diff)
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
-rw-r--r--core/jni/android/graphics/TextLayoutCache.h2
1 files changed, 1 insertions, 1 deletions
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