diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-28 18:51:03 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-28 18:51:03 +0000 |
commit | 7e2b0f3b06351cf5bd9f6130f6bfb950cfc2cb75 (patch) | |
tree | 405b18a6b8000b2f84da08e6fb8047286c1aaf9b /src | |
parent | e9ba81f43aeb25776bf140841f0665cb61812eff (diff) |
Add SkPurgeGlobalDiscardableMemoryPool, needed to replace SkImageRef
BUG=skia:2389
R=reed@google.com, scroggo@google.com
Author: halcanary@google.com
Review URL: https://codereview.chromium.org/298423002
git-svn-id: http://skia.googlecode.com/svn/trunk@14925 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/lazy/SkDiscardableMemoryPool.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lazy/SkDiscardableMemoryPool.cpp b/src/lazy/SkDiscardableMemoryPool.cpp index 961216963e..4fb8ae4fe1 100644 --- a/src/lazy/SkDiscardableMemoryPool.cpp +++ b/src/lazy/SkDiscardableMemoryPool.cpp @@ -271,4 +271,8 @@ SkDiscardableMemoryPool* SkGetGlobalDiscardableMemoryPool() { return gPool; } +// defined in SkImageGenerator.h +void SkPurgeGlobalDiscardableMemoryPool() { + SkGetGlobalDiscardableMemoryPool()->dumpPool(); +} //////////////////////////////////////////////////////////////////////////////// |