diff options
author | reed <reed@google.com> | 2014-10-08 05:17:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-08 05:17:12 -0700 |
commit | 9d93c2ebb31bf996905532446644f242339a774e (patch) | |
tree | 0dc32abf1e1d173f8fee8af5b6ff85ed46255e5d /src/core/SkResourceCache.h | |
parent | d61ef01f176328619d29045da3ec72e4732276b6 (diff) |
Add SkCachedData and use it for SkMipMap
This reverts commit 37c5a815d8ea33247968212ef4cc83394ceee1bc.
TBR=mtklein
Review URL: https://codereview.chromium.org/635333002
Diffstat (limited to 'src/core/SkResourceCache.h')
-rw-r--r-- | src/core/SkResourceCache.h | 3 |
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 */ |