From f98d96e192db421eed54103eedfcbb6600f73c08 Mon Sep 17 00:00:00 2001 From: Derek Sollenberger Date: Thu, 19 Apr 2012 10:44:45 -0400 Subject: Reset Skia to the default font cache size that we used in ICS. bug: 6226962 Change-Id: I8d078faa836c1daa38810bc24aa24942cb70676f --- include/core/SkUserConfig.h | 2 +- src/ports/SkFontHost_android.cpp | 2 -- 2 files changed, 1 insertion(+), 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 #include -#define FONT_CACHE_MEMORY_BUDGET (768 * 1024) - #ifndef SK_FONT_FILE_PREFIX #define SK_FONT_FILE_PREFIX "/fonts/" #endif -- cgit v1.1