Index: include/core/SkGraphics.h |
diff --git a/include/core/SkGraphics.h b/include/core/SkGraphics.h |
index 5aecc7acd00f029ffd85fd2035fae98fd63152c7..d5a730d9e0fc88103656ef64ce47fe5f2712cce4 100644 |
--- a/include/core/SkGraphics.h |
+++ b/include/core/SkGraphics.h |
@@ -120,6 +120,14 @@ public: |
static void DumpMemoryStatistics(SkTraceMemoryDump* dump); |
/** |
+ * Free as much globally cached memory as possible. This will purge all private caches in Skia, |
+ * including font and image caches. |
+ * |
+ * If there are caches associated with GPU context, those will not be affected by this call. |
+ */ |
+ static void PurgeAllCaches(); |
+ |
+ /** |
* Applications with command line options may pass optional state, such |
* as cache sizes, here, for instance: |
* font-cache-limit=12345678 |