aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/lazy/SkDiscardableMemoryPool.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-28 18:51:03 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-28 18:51:03 +0000
commit7e2b0f3b06351cf5bd9f6130f6bfb950cfc2cb75 (patch)
tree405b18a6b8000b2f84da08e6fb8047286c1aaf9b /src/lazy/SkDiscardableMemoryPool.cpp
parente9ba81f43aeb25776bf140841f0665cb61812eff (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/lazy/SkDiscardableMemoryPool.cpp')
-rw-r--r--src/lazy/SkDiscardableMemoryPool.cpp4
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();
+}
////////////////////////////////////////////////////////////////////////////////