Index: src/core/SkResourceCache.h |
diff --git a/src/core/SkResourceCache.h b/src/core/SkResourceCache.h |
index d4e1dfa3766fb74a94181ef5ff01092283a84107..52196985d392cd327516f3dd97a7853955ba8c9a 100644 |
--- a/src/core/SkResourceCache.h |
+++ b/src/core/SkResourceCache.h |
@@ -126,6 +126,11 @@ public: |
static void PurgeAll(); |
/** |
+ * Returns the DiscardableFactory used by the global cache, or NULL. |
+ */ |
+ static DiscardableFactory GetDiscardableFactory(); |
+ |
+ /** |
* Use this allocator for bitmaps, so they can use ashmem when available. |
* Returns NULL if the ResourceCache has not been initialized with a DiscardableFactory. |
*/ |
@@ -189,6 +194,7 @@ public: |
this->purgeAsNeeded(true); |
} |
+ DiscardableFactory discardableFactory() const { return fDiscardableFactory; } |
SkBitmap::Allocator* allocator() const { return fAllocator; }; |
/** |