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

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: 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 6493a75e0b6355943eefae86176b57f86e598325..71cfb8aa2fb86e20c9f2c86c2da04e983dbbd2c9 100644
--- a/src/core/SkCachedData.h
+++ b/src/core/SkCachedData.h
@@ -30,6 +30,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) {}

Powered by Google App Engine
This is Rietveld 408576698