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

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

Issue 966863002: PDF: Canon now owns a reference to all interned objects (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-02-27 (Friday) 15:27:08 EST Created 5 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 unified diff | Download patch
« no previous file with comments | « src/pdf/SkPDFCanon.cpp ('k') | src/pdf/SkPDFFont.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPDFFont_DEFINED 10 #ifndef SkPDFFont_DEFINED
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 kRelated_Match, 143 kRelated_Match,
144 kNot_Match, 144 kNot_Match,
145 }; 145 };
146 static Match IsMatch(SkPDFFont* existingFont, 146 static Match IsMatch(SkPDFFont* existingFont,
147 uint32_t existingFontID, 147 uint32_t existingFontID,
148 uint16_t existingGlyphID, 148 uint16_t existingGlyphID,
149 uint32_t searchFontID, 149 uint32_t searchFontID,
150 uint16_t searchGlyphID); 150 uint16_t searchGlyphID);
151 151
152 protected: 152 protected:
153 SkPDFCanon* const fCanon;
154
155 // Common constructor to handle common members. 153 // Common constructor to handle common members.
156 SkPDFFont(SkPDFCanon* canon, 154 SkPDFFont(const SkAdvancedTypefaceMetrics* fontInfo,
157 const SkAdvancedTypefaceMetrics* fontInfo,
158 SkTypeface* typeface, 155 SkTypeface* typeface,
159 SkPDFDict* relatedFontDescriptor); 156 SkPDFDict* relatedFontDescriptor);
160 157
161 // Accessors for subclass. 158 // Accessors for subclass.
162 const SkAdvancedTypefaceMetrics* fontInfo(); 159 const SkAdvancedTypefaceMetrics* fontInfo();
163 void setFontInfo(const SkAdvancedTypefaceMetrics* info); 160 void setFontInfo(const SkAdvancedTypefaceMetrics* info);
164 uint16_t firstGlyphID() const; 161 uint16_t firstGlyphID() const;
165 uint16_t lastGlyphID() const; 162 uint16_t lastGlyphID() const;
166 void setLastGlyphID(uint16_t glyphID); 163 void setLastGlyphID(uint16_t glyphID);
167 164
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 uint16_t fLastGlyphID; 196 uint16_t fLastGlyphID;
200 SkAutoTUnref<const SkAdvancedTypefaceMetrics> fFontInfo; 197 SkAutoTUnref<const SkAdvancedTypefaceMetrics> fFontInfo;
201 SkAutoTUnref<SkPDFDict> fDescriptor; 198 SkAutoTUnref<SkPDFDict> fDescriptor;
202 199
203 SkAdvancedTypefaceMetrics::FontType fFontType; 200 SkAdvancedTypefaceMetrics::FontType fFontType;
204 201
205 typedef SkPDFDict INHERITED; 202 typedef SkPDFDict INHERITED;
206 }; 203 };
207 204
208 #endif 205 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFCanon.cpp ('k') | src/pdf/SkPDFFont.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698