aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
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 /include
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 'include')
-rw-r--r--include/core/SkImageGenerator.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/SkImageGenerator.h b/include/core/SkImageGenerator.h
index f399ab538e..76e856b387 100644
--- a/include/core/SkImageGenerator.h
+++ b/include/core/SkImageGenerator.h
@@ -34,6 +34,12 @@ class SkImageGenerator;
*/
SK_API bool SkInstallDiscardablePixelRef(SkImageGenerator*, SkBitmap* destination);
+/**
+ * Purges all unlocked discardable memory in Skia's global
+ * discardable memory pool.
+ */
+SK_API void SkPurgeGlobalDiscardableMemoryPool();
+
/**
* An interface that allows a purgeable PixelRef (such as a