aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkScaledImageCache.h
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-12-12 21:37:25 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-12-12 21:37:25 +0000
commitfa7fd80ec36103351c32a7a1f235a6095110c39c (patch)
tree53109d6526151a6055eadd5e84f6ba5ebdbeb8dc /src/core/SkScaledImageCache.h
parente4fafb146e85cdfcf9d5418597b6818aa0754ada (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.h11
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