diff options
author | 2013-12-12 21:37:25 +0000 | |
---|---|---|
committer | 2013-12-12 21:37:25 +0000 | |
commit | fa7fd80ec36103351c32a7a1f235a6095110c39c (patch) | |
tree | 53109d6526151a6055eadd5e84f6ba5ebdbeb8dc /src/core/SkScaledImageCache.h | |
parent | e4fafb146e85cdfcf9d5418597b6818aa0754ada (diff) |
detect if the scaledimagecache returns a purged bitmap
BUG=
R=scroggo@google.com
Review URL: https://codereview.chromium.org/110383005
git-svn-id: http://skia.googlecode.com/svn/trunk@12654 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkScaledImageCache.h')
-rw-r--r-- | src/core/SkScaledImageCache.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/SkScaledImageCache.h b/src/core/SkScaledImageCache.h index 311db325be..fe072306d3 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 |