Index: src/core/SkResourceCache.h |
diff --git a/src/core/SkResourceCache.h b/src/core/SkResourceCache.h |
index 52196985d392cd327516f3dd97a7853955ba8c9a..98f6d94cf4723fb65d4be3741c4d43ad7de3b77e 100644 |
--- a/src/core/SkResourceCache.h |
+++ b/src/core/SkResourceCache.h |
@@ -10,6 +10,7 @@ |
#include "SkBitmap.h" |
+class SkCachedData; |
class SkDiscardableMemory; |
class SkMipMap; |
@@ -136,6 +137,8 @@ public: |
*/ |
static SkBitmap::Allocator* GetAllocator(); |
+ static SkCachedData* NewCachedData(size_t bytes); |
+ |
/** |
* Call SkDebugf() with diagnostic information about the state of the cache |
*/ |
@@ -197,6 +200,8 @@ public: |
DiscardableFactory discardableFactory() const { return fDiscardableFactory; } |
SkBitmap::Allocator* allocator() const { return fAllocator; }; |
+ SkCachedData* newCachedData(size_t bytes); |
+ |
/** |
* Call SkDebugf() with diagnostic information about the state of the cache |
*/ |