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

Unified Diff: include/core/SkGraphics.h

Issue 1314483006: Revert of Make SkGraphics::Term a no-op, stop calling it. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 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 | « experimental/SkV8Example/SkV8Example.cpp ('k') | include/core/SkPaint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « experimental/SkV8Example/SkV8Example.cpp ('k') | include/core/SkPaint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698