diff options
author | halcanary <halcanary@google.com> | 2015-02-27 12:41:03 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-27 12:41:03 -0800 |
commit | 2e3f9d8a9309686eeb4c76ccfde5800da87a68b3 (patch) | |
tree | d4a9837f39b384086705102850610a515e2c5e74 /src/pdf/SkPDFFont.h | |
parent | 4f569beac777afde2f2dd9079a52535f8e7519b3 (diff) |
PDF: Canon now owns a reference to all interned objects
Add SkPDFCanon::reset function to unref all objects.
No longer possible to remove object from canon
Motivation: this doesn't change these object's lifetime, (they will
still be fully unrefed when SkDocument::close() is called, but we no
longer have to remove them from the array when their destructor is
called.
Review URL: https://codereview.chromium.org/966863002
Diffstat (limited to 'src/pdf/SkPDFFont.h')
-rw-r--r-- | src/pdf/SkPDFFont.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pdf/SkPDFFont.h b/src/pdf/SkPDFFont.h index 6ff4c7b15e..c286fa481a 100644 --- a/src/pdf/SkPDFFont.h +++ b/src/pdf/SkPDFFont.h @@ -150,11 +150,8 @@ public: uint16_t searchGlyphID); protected: - SkPDFCanon* const fCanon; - // Common constructor to handle common members. - SkPDFFont(SkPDFCanon* canon, - const SkAdvancedTypefaceMetrics* fontInfo, + SkPDFFont(const SkAdvancedTypefaceMetrics* fontInfo, SkTypeface* typeface, SkPDFDict* relatedFontDescriptor); |