Index: include/core/SkGraphics.h |
diff --git a/include/core/SkGraphics.h b/include/core/SkGraphics.h |
index e9c5af511e4fa35c42a53ef152aa1deac196cb98..8e8bd77ef4545048bb3114cb5bf82d3334cdb3f2 100644 |
--- a/include/core/SkGraphics.h |
+++ b/include/core/SkGraphics.h |
@@ -23,8 +23,10 @@ |
*/ |
static void Init(); |
- SK_ATTR_DEPRECATED("SkGraphics::Term() is a no-op. We're in the middle of cleaning it up.") |
- static void Term() {} |
+ /** |
+ * Call this to release any memory held privately, such as the font cache. |
+ */ |
+ static void Term(); |
/** |
* Return the version numbers for the library. If the parameter is not |
@@ -167,6 +169,9 @@ |
SkAutoGraphics() { |
SkGraphics::Init(); |
} |
+ ~SkAutoGraphics() { |
+ SkGraphics::Term(); |
+ } |
}; |
#endif |