summaryrefslogtreecommitdiffstats
path: root/skia/ext
diff options
context:
space:
mode:
Diffstat (limited to 'skia/ext')
-rw-r--r--skia/ext/SkFontHost_fontconfig.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/skia/ext/SkFontHost_fontconfig.cpp b/skia/ext/SkFontHost_fontconfig.cpp
index 5d50eb7..82f69dd 100644
--- a/skia/ext/SkFontHost_fontconfig.cpp
+++ b/skia/ext/SkFontHost_fontconfig.cpp
@@ -326,14 +326,6 @@ SkStream* SkFontHost::OpenStream(uint32_t id)
return SkNEW_ARGS(SkFileDescriptorStream, (fd));
}
-size_t SkFontHost::ShouldPurgeFontCache(size_t sizeAllocatedSoFar)
-{
- if (sizeAllocatedSoFar > kFontCacheMemoryBudget)
- return sizeAllocatedSoFar - kFontCacheMemoryBudget;
- else
- return 0; // nothing to do
-}
-
// static
size_t SkFontHost::GetFileName(SkFontID fontID, char path[], size_t length,
int32_t* index) {