aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkResourceCache.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2014-10-02 13:47:08 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-02 13:47:08 -0700
commit92561a0b99ad6c08ab7a11dd1872f028199392e9 (patch)
tree636cd4bbf4e131a384bdcf18d0172a86b20fde73 /src/core/SkResourceCache.h
parentd51ce44d18cb28df568f817b05478d24ef21c1a7 (diff)
Add SkCachedData and use it for SkMipMap
Diffstat (limited to 'src/core/SkResourceCache.h')
-rw-r--r--src/core/SkResourceCache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/SkResourceCache.h b/src/core/SkResourceCache.h
index 52196985d3..98f6d94cf4 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
*/