Index: src/core/SkScaledImageCache.h |
diff --git a/src/core/SkScaledImageCache.h b/src/core/SkScaledImageCache.h |
index 311db325be887ccddfa36b6790c0639387271786..fe072306d383f44eec7554724f4c3d8b94ae9fdf 100644 |
--- a/src/core/SkScaledImageCache.h |
+++ b/src/core/SkScaledImageCache.h |
@@ -66,6 +66,11 @@ public: |
static SkBitmap::Allocator* GetAllocator(); |
+ /** |
+ * Call SkDebugf() with diagnostic information about the state of the cache |
+ */ |
+ static void Dump(); |
+ |
/////////////////////////////////////////////////////////////////////////// |
/** |
@@ -151,6 +156,11 @@ public: |
SkBitmap::Allocator* allocator() const { return fAllocator; }; |
+ /** |
+ * Call SkDebugf() with diagnostic information about the state of the cache |
+ */ |
+ void dump() const; |
+ |
public: |
struct Rec; |
struct Key; |
@@ -174,6 +184,7 @@ private: |
Rec* findAndLock(const Key& key); |
ID* addAndLock(Rec* rec); |
+ void purgeRec(Rec*); |
void purgeAsNeeded(); |
// linklist management |