aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/core/SkUserConfig.h2
-rw-r--r--src/ports/SkFontHost_android.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/include/core/SkUserConfig.h b/include/core/SkUserConfig.h
index ef75114..91f8948 100644
--- a/include/core/SkUserConfig.h
+++ b/include/core/SkUserConfig.h
@@ -122,7 +122,7 @@
* To specify a different default font cache limit, define this. If this is
* undefined, skia will use a built-in value.
*/
-//#define SK_DEFAULT_FONT_CACHE_LIMIT (1024 * 1024)
+#define SK_DEFAULT_FONT_CACHE_LIMIT (768 * 1024)
/* If defined, use CoreText instead of ATSUI on OS X.
*/
diff --git a/src/ports/SkFontHost_android.cpp b/src/ports/SkFontHost_android.cpp
index 20e334c..c836e2f 100644
--- a/src/ports/SkFontHost_android.cpp
+++ b/src/ports/SkFontHost_android.cpp
@@ -28,8 +28,6 @@
#include <stdio.h>
#include <string.h>
-#define FONT_CACHE_MEMORY_BUDGET (768 * 1024)
-
#ifndef SK_FONT_FILE_PREFIX
#define SK_FONT_FILE_PREFIX "/fonts/"
#endif