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

Unified Diff: src/core/SkCachedData.h

Issue 1271033002: private iterator to visit all resource cache entries (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add iter for fontcache Created 5 years, 4 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
Index: src/core/SkCachedData.h
diff --git a/src/core/SkCachedData.h b/src/core/SkCachedData.h
index a8611572987b6c96721686f14cc63833e0f446d9..d44fbc58951da0602cc8e58e6cbf64b4329480a5 100644
--- a/src/core/SkCachedData.h
+++ b/src/core/SkCachedData.h
@@ -31,6 +31,10 @@ public:
bool testing_only_isLocked() const { return fIsLocked; }
bool testing_only_isInCache() const { return fInCache; }
+ SkDiscardableMemory* diagnostic_only_getDiscardable() const {
+ return kDiscardableMemory_StorageType == fStorageType ? fStorage.fDM : nullptr;
+ }
+
protected:
// called when fData changes. could be NULL.
virtual void onDataChange(void* oldData, void* newData) {}
« no previous file with comments | « src/core/SkBitmapCache.cpp ('k') | src/core/SkGlyphCache.h » ('j') | src/core/SkGlyphCache.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698