diff options
author | 2011-11-08 13:48:32 +0000 | |
---|---|---|
committer | 2011-11-08 13:48:32 +0000 | |
commit | 77407ca019ca1bb98dd65f940be825d38719e983 (patch) | |
tree | 50a62c68e649ef2fbf4032006eef19d01387976e /src/ports/SkFontHost_mac_atsui.cpp | |
parent | ca08edd7a88d4691f0ec762fe7c8dee96ef0052b (diff) |
add api to SkGraphics to get/set font cache limit
add SK_DEFAULT_FONT_CACHE_LIMIT to SkUserConfig, to override our default value
git-svn-id: http://skia.googlecode.com/svn/trunk@2621 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/ports/SkFontHost_mac_atsui.cpp')
-rw-r--r-- | src/ports/SkFontHost_mac_atsui.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/ports/SkFontHost_mac_atsui.cpp b/src/ports/SkFontHost_mac_atsui.cpp index d5c50fbf86..3c3abb4647 100644 --- a/src/ports/SkFontHost_mac_atsui.cpp +++ b/src/ports/SkFontHost_mac_atsui.cpp @@ -15,9 +15,6 @@ #include "SkPaint.h" #include "SkPoint.h" -// Give 1MB font cache budget -#define FONT_CACHE_MEMORY_BUDGET (1024 * 1024) - const char* gDefaultfont = "Arial"; // hard code for now static SkMutex gFTMutex; @@ -508,13 +505,6 @@ SkTypeface* SkFontHost::CreateTypeface(const SkTypeface* familyFace, } } -size_t SkFontHost::ShouldPurgeFontCache(size_t sizeAllocatedSoFar) { - if (sizeAllocatedSoFar > FONT_CACHE_MEMORY_BUDGET) - return sizeAllocatedSoFar - FONT_CACHE_MEMORY_BUDGET; - else - return 0; // nothing to do -} - int SkFontHost::ComputeGammaFlag(const SkPaint& paint) { return 0; } |