Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Unified Diff: src/core/SkGlyphCache.h

Issue 24447003: add counting to glyphcache, and refactor some for clarity (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: expose count-limit in SkGraphics.h Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkGraphics.h ('k') | src/core/SkGlyphCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkGlyphCache.h
diff --git a/src/core/SkGlyphCache.h b/src/core/SkGlyphCache.h
index 3da7a2252f3cc7e313838d4d5ec42e3e9917943f..8447337374586feba017ccf47e916e473da18270 100644
--- a/src/core/SkGlyphCache.h
+++ b/src/core/SkGlyphCache.h
@@ -197,27 +197,6 @@ private:
SkGlyph* lookupMetrics(uint32_t id, MetricsType);
static bool DetachProc(const SkGlyphCache*, void*) { return true; }
- void detach(SkGlyphCache** head) {
- if (fPrev) {
- fPrev->fNext = fNext;
- } else {
- *head = fNext;
- }
- if (fNext) {
- fNext->fPrev = fPrev;
- }
- fPrev = fNext = NULL;
- }
-
- void attachToHead(SkGlyphCache** head) {
- SkASSERT(NULL == fPrev && NULL == fNext);
- if (*head) {
- (*head)->fPrev = this;
- fNext = *head;
- }
- *head = this;
- }
-
SkGlyphCache* fNext, *fPrev;
SkDescriptor* fDesc;
SkScalerContext* fScalerContext;
@@ -258,9 +237,6 @@ private:
AuxProcRec* fAuxProcList;
void invokeAndRemoveAuxProcs();
- // This relies on the caller to have already acquired the mutex to access the global cache
- static size_t InternalFreeCache(SkGlyphCache_Globals*, size_t bytesNeeded);
-
inline static SkGlyphCache* FindTail(SkGlyphCache* head);
friend class SkGlyphCache_Globals;
« no previous file with comments | « include/core/SkGraphics.h ('k') | src/core/SkGlyphCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698