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

Unified Diff: src/pdf/SkPDFFont.cpp

Issue 1790023003: SkPDF: add drop() virtual to release resources early. (Closed) Base URL: https://skia.googlesource.com/skia.git@skpdf-global
Patch Set: Record move fns Created 4 years, 9 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
Index: src/pdf/SkPDFFont.cpp
diff --git a/src/pdf/SkPDFFont.cpp b/src/pdf/SkPDFFont.cpp
index 59bfc8f3f13baf4a03c6e69aabef3522598b11b3..2376df80fc6a21f75da3f00613d6c71e79348e35 100644
--- a/src/pdf/SkPDFFont.cpp
+++ b/src/pdf/SkPDFFont.cpp
@@ -1434,3 +1434,10 @@ bool SkPDFFont::CanEmbedTypeface(SkTypeface* typeface, SkPDFCanon* canon) {
}
return *canon->fCanEmbedTypeface.set(id, canEmbed);
}
+
+void SkPDFFont::dump() {
+ fTypeface = nullptr;
+ fFontInfo = nullptr;
+ fDescriptor = nullptr;
+ this->SkPDFDict::dump();
+}

Powered by Google App Engine
This is Rietveld 408576698