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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 SkPDFFont* fFont; | 42 SkPDFFont* fFont; |
43 SkPDFGlyphSet* fGlyphSet; | 43 SkPDFGlyphSet* fGlyphSet; |
44 }; | 44 }; |
45 | 45 |
46 SkPDFGlyphSetMap(); | 46 SkPDFGlyphSetMap(); |
47 ~SkPDFGlyphSetMap(); | 47 ~SkPDFGlyphSetMap(); |
48 | 48 |
49 class F2BIter { | 49 class F2BIter { |
50 public: | 50 public: |
51 explicit F2BIter(const SkPDFGlyphSetMap& map); | 51 explicit F2BIter(const SkPDFGlyphSetMap& map); |
52 FontGlyphSetPair* next() const; | 52 const FontGlyphSetPair* next() const; |
53 void reset(const SkPDFGlyphSetMap& map); | 53 void reset(const SkPDFGlyphSetMap& map); |
54 | 54 |
55 private: | 55 private: |
56 const SkTDArray<FontGlyphSetPair>* fMap; | 56 const SkTDArray<FontGlyphSetPair>* fMap; |
57 mutable int fIndex; | 57 mutable int fIndex; |
58 }; | 58 }; |
59 | 59 |
60 void merge(const SkPDFGlyphSetMap& usage); | 60 void merge(const SkPDFGlyphSetMap& usage); |
61 void reset(); | 61 void reset(); |
62 | 62 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 SkAutoTUnref<SkPDFDict> fDescriptor; | 193 SkAutoTUnref<SkPDFDict> fDescriptor; |
194 | 194 |
195 SkAdvancedTypefaceMetrics::FontType fFontType; | 195 SkAdvancedTypefaceMetrics::FontType fFontType; |
196 | 196 |
197 // This should be made a hash table if performance is a problem. | 197 // This should be made a hash table if performance is a problem. |
198 static SkTDArray<FontRec>& CanonicalFonts(); | 198 static SkTDArray<FontRec>& CanonicalFonts(); |
199 static SkBaseMutex& CanonicalFontsMutex(); | 199 static SkBaseMutex& CanonicalFontsMutex(); |
200 }; | 200 }; |
201 | 201 |
202 #endif | 202 #endif |
OLD | NEW |