aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-11-08 20:03:48 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-11-08 20:03:48 +0000
commit073c90769e4cc7bf14323c1cab59339463604ecd (patch)
tree158e249b9ca5506617c6059fc04ad1b9ba5ea768 /include/core
parentfe701129857924f76a0d752d4c964b3c5e4b49fe (diff)
use new PurgeFontCache() api
git-svn-id: http://skia.googlecode.com/svn/trunk@2633 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkGraphics.h21
1 files changed, 7 insertions, 14 deletions
diff --git a/include/core/SkGraphics.h b/include/core/SkGraphics.h
index d6af865931..17a26116f9 100644
--- a/include/core/SkGraphics.h
+++ b/include/core/SkGraphics.h
@@ -23,20 +23,6 @@ public:
*/
static void GetVersion(int32_t* major, int32_t* minor, int32_t* patch);
- // Font Cache routines
-
- /**
- * Return the (approximate) number of bytes used by the font cache.
- */
- static size_t GetFontCacheUsed();
-
- /**
- * Attempt to purge the font cache until <= the specified amount remains
- * in the cache. Specifying 0 will attempt to purge the entire cache.
- * Returns true if some amount was purged from the font cache.
- */
- static bool SetFontCacheUsed(size_t usageInBytes);
-
/**
* Return the max number of bytes that should be used by the font cache.
* If the cache needs to allocate more, it will purge previous entries.
@@ -53,6 +39,13 @@ public:
*/
static size_t SetFontCacheLimit(size_t bytes);
+ /**
+ * For debugging purposes, this will attempt to purge the font cache. It
+ * does not change the limit, but will cause subsequent font measures and
+ * draws to be recreated, since they will no longer be in the cache.
+ */
+ static void PurgeFontCache();
+
private:
/** This is automatically called by SkGraphics::Init(), and must be
implemented by the host OS. This allows the host OS to register a callback