| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |