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

Side by Side Diff: src/pdf/SkPDFDocument.h

Issue 2112943002: SkPDF: Glyph Useage Map improvements (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFDocument.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 #ifndef SkPDFDocument_DEFINED 7 #ifndef SkPDFDocument_DEFINED
8 #define SkPDFDocument_DEFINED 8 #define SkPDFDocument_DEFINED
9 9
10 #include "SkDocument.h" 10 #include "SkDocument.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 to the SkPDFObjNumMap without serializing them, they will be 68 to the SkPDFObjNumMap without serializing them, they will be
69 serialized as well. 69 serialized as well.
70 70
71 It might go without saying that objects should not be changed 71 It might go without saying that objects should not be changed
72 after calling serialize, since those changes will be too late. 72 after calling serialize, since those changes will be too late.
73 The same goes for changes to the SkPDFSubstituteMap that effect 73 The same goes for changes to the SkPDFSubstituteMap that effect
74 the object or its dependencies. 74 the object or its dependencies.
75 */ 75 */
76 void serialize(const sk_sp<SkPDFObject>&); 76 void serialize(const sk_sp<SkPDFObject>&);
77 SkPDFCanon* canon() { return &fCanon; } 77 SkPDFCanon* canon() { return &fCanon; }
78 SkPDFGlyphSetMap* getGlyphUsage() { return &fGlyphUsage; }
78 79
79 private: 80 private:
80 SkPDFObjectSerializer fObjectSerializer; 81 SkPDFObjectSerializer fObjectSerializer;
81 SkPDFCanon fCanon; 82 SkPDFCanon fCanon;
82 SkPDFGlyphSetMap fGlyphUsage; 83 SkPDFGlyphSetMap fGlyphUsage;
83 SkTArray<sk_sp<SkPDFDict>> fPages; 84 SkTArray<sk_sp<SkPDFDict>> fPages;
84 sk_sp<SkPDFDict> fDests; 85 sk_sp<SkPDFDict> fDests;
85 sk_sp<SkPDFDevice> fPageDevice; 86 sk_sp<SkPDFDevice> fPageDevice;
86 sk_sp<SkCanvas> fCanvas; 87 sk_sp<SkCanvas> fCanvas;
87 sk_sp<SkPDFObject> fID; 88 sk_sp<SkPDFObject> fID;
88 sk_sp<SkPDFObject> fXMP; 89 sk_sp<SkPDFObject> fXMP;
89 SkScalar fRasterDpi; 90 SkScalar fRasterDpi;
90 SkDocument::PDFMetadata fMetadata; 91 SkDocument::PDFMetadata fMetadata;
91 bool fPDFA; 92 bool fPDFA;
92 }; 93 };
93 94
94 #endif // SkPDFDocument_DEFINED 95 #endif // SkPDFDocument_DEFINED
OLDNEW
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698