aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkGlyphCache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkGlyphCache.h')
-rw-r--r--src/core/SkGlyphCache.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/core/SkGlyphCache.h b/src/core/SkGlyphCache.h
index 84a32eb3ef..f2a6b758fc 100644
--- a/src/core/SkGlyphCache.h
+++ b/src/core/SkGlyphCache.h
@@ -109,20 +109,6 @@ public:
void dump() const;
- /** AuxProc/Data allow a client to associate data with this cache entry. Multiple clients can
- use this, as their data is keyed with a function pointer. In addition to serving as a
- key, the function pointer is called with the data when the glyphcache object is deleted,
- so the client can cleanup their data as well.
- NOTE: the auxProc must not try to access this glyphcache in any way, since it may be in
- the process of being deleted.
- */
-
- //! If the proc is found, return true and set *dataPtr to its data
- bool getAuxProcData(void (*auxProc)(void*), void** dataPtr) const;
-
- //! Add a proc/data pair to the glyphcache. proc should be non-null
- void setAuxProc(void (*auxProc)(void*), void* auxData);
-
SkScalerContext* getScalerContext() const { return fScalerContext; }
/** Find a matching cache entry, and call proc() with it. If none is found create a new one.
@@ -208,12 +194,6 @@ private:
PackedGlyphID fPackedGlyphID;
};
- struct AuxProcRec {
- AuxProcRec* fNext;
- void (*fProc)(void*);
- void* fData;
- };
-
// SkGlyphCache takes ownership of the scalercontext.
SkGlyphCache(SkTypeface*, const SkDescriptor*, SkScalerContext*);
~SkGlyphCache();
@@ -235,8 +215,6 @@ private:
// The id arg is a combined id generated by MakeID.
CharGlyphRec* getCharGlyphRec(PackedUnicharID id);
- void invokeAndRemoveAuxProcs();
-
static void OffsetResults(const SkGlyph::Intercept* intercept, SkScalar scale,
SkScalar xPos, SkScalar* array, int* count);
static void AddInterval(SkScalar val, SkGlyph::Intercept* intercept);
@@ -266,8 +244,6 @@ private:
// used to track (approx) how much ram is tied-up in this cache
size_t fMemoryUsed;
-
- AuxProcRec* fAuxProcList;
};
class SkAutoGlyphCache : public std::unique_ptr<SkGlyphCache, SkGlyphCache::AttachCacheFunctor> {