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

Unified Diff: src/lazy/SkDiscardableMemoryPool.cpp

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 | « include/core/SkImageGenerator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lazy/SkDiscardableMemoryPool.cpp
diff --git a/src/lazy/SkDiscardableMemoryPool.cpp b/src/lazy/SkDiscardableMemoryPool.cpp
index 961216963e39951fdce5b866b4617d57340999a9..4fb8ae4fe1fbc626453bf6eecd009dac5183b9fa 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();
+}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « include/core/SkImageGenerator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698