Index: include/core/SkGraphics.h |
diff --git a/include/core/SkGraphics.h b/include/core/SkGraphics.h |
index a796a671e73f32a1f08b941f0185871de7458b6d..c154df1e404596a8dc4575136ce4ffab23e78af7 100644 |
--- a/include/core/SkGraphics.h |
+++ b/include/core/SkGraphics.h |
@@ -97,6 +97,12 @@ public: |
static size_t SetResourceCacheTotalByteLimit(size_t newLimit); |
/** |
+ * For debugging purposes, this will attempt to purge the resource cache. It |
+ * does not change the limit. |
+ */ |
+ static void PurgeResourceCache(); |
+ |
+ /** |
* When the cachable entry is very lage (e.g. a large scaled bitmap), adding it to the cache |
* can cause most/all of the existing entries to be purged. To avoid the, the client can set |
* a limit for a single allocation. If a cacheable entry would have been cached, but its size |