Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: include/core/SkImageGenerator.h

Issue 298423002: Add SkPurgeGlobalDiscardableMemoryPool, needed to replace SkImageRef (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/lazy/SkDiscardableMemoryPool.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkImageGenerator.h
diff --git a/include/core/SkImageGenerator.h b/include/core/SkImageGenerator.h
index f399ab538e9ea05d125ab1b21ec387640d69ffc3..76e856b387c95109eb8e0cb70d72ca5758df6f82 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
« no previous file with comments | « no previous file | src/lazy/SkDiscardableMemoryPool.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698