aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-30 13:08:01 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-30 13:08:01 +0000
commit79a1c34ee45a3eb5edd568fd97626dff1b64a0db (patch)
treea1f80ffa864f2692a8305837f011b42f0ac860d0 /include/core
parentada448040f04bb4c8fae82fe839807ba45a85d61 (diff)
Add a method reporting used font cache size to the SkGraphics API git-svn-id: http://skia.googlecode.com/svn/trunk@4825 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkGraphics.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkGraphics.h b/include/core/SkGraphics.h
index 3247dc2b02..c7ee07f4ff 100644
--- a/include/core/SkGraphics.h
+++ b/include/core/SkGraphics.h
@@ -49,6 +49,11 @@ public:
static size_t SetFontCacheLimit(size_t bytes);
/**
+ * Return the number of bytes currently used by the font cache.
+ */
+ static size_t GetFontCacheUsed();
+
+ /**
* 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.