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

Unified Diff: include/core/SkPixelRef.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: include/core/SkPixelRef.h
diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h
index 0ed3099126de3481c384996cc9c55cd0d0306891..d14a0c07858b4d06feef7cd7c434c31081d9731f 100644
--- a/include/core/SkPixelRef.h
+++ b/include/core/SkPixelRef.h
@@ -24,6 +24,7 @@ class SkData;
struct SkIRect;
class GrTexture;
+class SkDiscardableMemory;
/** \class SkPixelRef
@@ -263,6 +264,8 @@ public:
fAddedToCache.store(true);
}
+ virtual SkDiscardableMemory* diagnostic_only_getDiscardable() const { return NULL; }
+
protected:
/**
* On success, returns true and fills out the LockRec for the pixels. On
« no previous file with comments | « bench/ImageCacheBench.cpp ('k') | samplecode/SampleApp.cpp » ('j') | src/core/SkGlyphCache.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698