aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkResourceCache.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2014-10-08 05:17:12 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-08 05:17:12 -0700
commit9d93c2ebb31bf996905532446644f242339a774e (patch)
tree0dc32abf1e1d173f8fee8af5b6ff85ed46255e5d /src/core/SkResourceCache.h
parentd61ef01f176328619d29045da3ec72e4732276b6 (diff)
Add SkCachedData and use it for SkMipMap
Diffstat (limited to 'src/core/SkResourceCache.h')
-rw-r--r--src/core/SkResourceCache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/SkResourceCache.h b/src/core/SkResourceCache.h
index 52196985d3..665c0be498 100644
--- a/src/core/SkResourceCache.h
+++ b/src/core/SkResourceCache.h
@@ -10,6 +10,7 @@
#include "SkBitmap.h"
+class SkCachedData;
class SkDiscardableMemory;
class SkMipMap;
@@ -197,6 +198,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
*/