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

Unified Diff: src/pdf/SkPDFFont.cpp

Issue 2354583002: SkPDF: SkBitSet gets reset() to make drop() better. (Closed)
Patch Set: Created 4 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 | « no previous file | src/utils/SkBitSet.h » ('j') | src/utils/SkBitSet.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFFont.cpp
diff --git a/src/pdf/SkPDFFont.cpp b/src/pdf/SkPDFFont.cpp
index 89c7951f6356b0671afec5b102f67b4521ba500d..d036b80448de50fc1c44d0853c0d1b6b7d7cad9b 100644
--- a/src/pdf/SkPDFFont.cpp
+++ b/src/pdf/SkPDFFont.cpp
@@ -727,5 +727,6 @@ bool SkPDFFont::CanEmbedTypeface(SkTypeface* typeface, SkPDFCanon* canon) {
void SkPDFFont::drop() {
bungeman-skia 2016/09/19 17:07:07 Now I'm wierded out about this 'drop' method which
fTypeface = nullptr;
+ fGlyphUsage.reset();
bungeman-skia 2016/09/19 17:07:07 If this guy is really gone maybe just destruct?
this->SkPDFDict::drop();
}
« no previous file with comments | « no previous file | src/utils/SkBitSet.h » ('j') | src/utils/SkBitSet.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698