diff options
author | 2014-08-18 07:57:26 -0700 | |
---|---|---|
committer | 2014-08-18 07:57:26 -0700 | |
commit | 8a986721926f77aba3772acb5d1c575072acd05c (patch) | |
tree | 2da691dc64f3f8379a58f41086e938426df7cf75 | |
parent | 0f149e5a78842c920c0ce1e1ac45f54473c11f05 (diff) |
Remove unused SkGlyphCache::VisitAllCaches.
R=reed@google.com
Author: bungeman@google.com
Review URL: https://codereview.chromium.org/472153002
-rwxr-xr-x | src/core/SkGlyphCache.cpp | 17 | ||||
-rw-r--r-- | src/core/SkGlyphCache.h | 6 |
2 files changed, 0 insertions, 23 deletions
diff --git a/src/core/SkGlyphCache.cpp b/src/core/SkGlyphCache.cpp index 2ab721aab4..3d29f9f38b 100755 --- a/src/core/SkGlyphCache.cpp +++ b/src/core/SkGlyphCache.cpp @@ -487,23 +487,6 @@ void SkGlyphCache_Globals::purgeAll() { this->internalPurge(fTotalMemoryUsed); } -void SkGlyphCache::VisitAllCaches(bool (*proc)(SkGlyphCache*, void*), - void* context) { - SkGlyphCache_Globals& globals = getGlobals(); - SkAutoMutexAcquire ac(globals.fMutex); - SkGlyphCache* cache; - - globals.validate(); - - for (cache = globals.internalGetHead(); cache != NULL; cache = cache->fNext) { - if (proc(cache, context)) { - break; - } - } - - globals.validate(); -} - /* This guy calls the visitor from within the mutext lock, so the visitor cannot: - take too much time diff --git a/src/core/SkGlyphCache.h b/src/core/SkGlyphCache.h index 2939eaa678..e27b34cfec 100644 --- a/src/core/SkGlyphCache.h +++ b/src/core/SkGlyphCache.h @@ -121,12 +121,6 @@ public: SkScalerContext* getScalerContext() const { return fScalerContext; } - /** Call proc on all cache entries, stopping early if proc returns true. - The proc should not create or delete caches, since it could produce - deadlock. - */ - static void VisitAllCaches(bool (*proc)(SkGlyphCache*, void*), void* ctx); - /** Find a matching cache entry, and call proc() with it. If none is found create a new one. If the proc() returns true, detach the cache and return it, otherwise leave it and return NULL. |