aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkGlyphCache.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-08-19 12:25:40 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-19 12:25:41 -0700
commit216b643fc77e754a3fabbb0ed397e7cf55d1954d (patch)
tree32e75226963e5cbeab12a9e4acfd380a7ff7096d /src/core/SkGlyphCache.h
parentfea7763140ba74b78f2c30028452e250140b6f21 (diff)
private iterator to visit all resource cache entries
BUG=skia: TBR= Review URL: https://codereview.chromium.org/1271033002
Diffstat (limited to 'src/core/SkGlyphCache.h')
-rw-r--r--src/core/SkGlyphCache.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/SkGlyphCache.h b/src/core/SkGlyphCache.h
index 1c985bf671..dc2aa579a7 100644
--- a/src/core/SkGlyphCache.h
+++ b/src/core/SkGlyphCache.h
@@ -66,7 +66,10 @@ public:
/** Returns the number of glyphs for this strike.
*/
- unsigned getGlyphCount();
+ unsigned getGlyphCount() const;
+
+ /** Return the number of glyphs currently cached. */
+ int countCachedGlyphs() const;
/** Return the image associated with the glyph. If it has not been generated this will
trigger that.
@@ -138,6 +141,9 @@ public:
static void Dump();
+ typedef void (*Visitor)(const SkGlyphCache&, void* context);
+ static void VisitAll(Visitor, void* context);
+
#ifdef SK_DEBUG
void validate() const;
#else