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

Unified Diff: src/core/SkScaledImageCache.h

Issue 110383005: detect if the scaledimagecache returns a purged bitmap (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years 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
Index: src/core/SkScaledImageCache.h
diff --git a/src/core/SkScaledImageCache.h b/src/core/SkScaledImageCache.h
index 311db325be887ccddfa36b6790c0639387271786..b20be071197f51043db11eeb3b64fad8e43d4ad2 100644
--- a/src/core/SkScaledImageCache.h
+++ b/src/core/SkScaledImageCache.h
@@ -66,6 +66,8 @@ public:
static SkBitmap::Allocator* GetAllocator();
+ static void Dump();
+
///////////////////////////////////////////////////////////////////////////
/**
@@ -151,6 +153,8 @@ public:
SkBitmap::Allocator* allocator() const { return fAllocator; };
+ void dump() const;
scroggo 2013/12/12 20:34:55 Can you add some comments? I see "dump" and I'm no
reed1 2013/12/12 21:13:49 Not sure. SkPath has a dump() that works in releas
+
public:
struct Rec;
struct Key;
@@ -174,6 +178,7 @@ private:
Rec* findAndLock(const Key& key);
ID* addAndLock(Rec* rec);
+ void purgeRec(Rec*);
void purgeAsNeeded();
// linklist management

Powered by Google App Engine
This is Rietveld 408576698