Index: src/pdf/SkPDFDocument.h |
diff --git a/src/pdf/SkPDFDocument.h b/src/pdf/SkPDFDocument.h |
index 86562fe42ee1c03dfc1ef0e8b31fc57b1abbe47a..5221dd2728a73a3da81016e2b437ac1a33364ec0 100644 |
--- a/src/pdf/SkPDFDocument.h |
+++ b/src/pdf/SkPDFDocument.h |
@@ -25,7 +25,6 @@ sk_sp<SkDocument> SkPDFMakeDocument(SkWStream* stream, |
// keep similar functionality together. |
struct SkPDFObjectSerializer : SkNoncopyable { |
SkPDFObjNumMap fObjNumMap; |
- SkPDFSubstituteMap fSubstituteMap; |
SkTDArray<int32_t> fOffsets; |
sk_sp<SkPDFObject> fInfoDict; |
size_t fBaseOffset; |
@@ -70,18 +69,16 @@ public: |
It might go without saying that objects should not be changed |
after calling serialize, since those changes will be too late. |
- The same goes for changes to the SkPDFSubstituteMap that effect |
- the object or its dependencies. |
*/ |
void serialize(const sk_sp<SkPDFObject>&); |
SkPDFCanon* canon() { return &fCanon; } |
- SkPDFGlyphSetMap* getGlyphUsage() { return &fGlyphUsage; } |
+ void registerFont(SkPDFFont* f) { fFonts.add(f); } |
private: |
SkPDFObjectSerializer fObjectSerializer; |
SkPDFCanon fCanon; |
- SkPDFGlyphSetMap fGlyphUsage; |
SkTArray<sk_sp<SkPDFDict>> fPages; |
+ SkTHashSet<SkPDFFont*> fFonts; |
sk_sp<SkPDFDict> fDests; |
sk_sp<SkPDFDevice> fPageDevice; |
sk_sp<SkCanvas> fCanvas; |
@@ -90,6 +87,8 @@ private: |
SkScalar fRasterDpi; |
SkDocument::PDFMetadata fMetadata; |
bool fPDFA; |
+ |
+ void reset(); |
}; |
#endif // SkPDFDocument_DEFINED |