OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 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 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 public: | 31 public: |
32 GrTextStrike(GrFontCache*, const GrKey* fontScalerKey, GrMaskFormat, | 32 GrTextStrike(GrFontCache*, const GrKey* fontScalerKey, GrMaskFormat, |
33 GrAtlasMgr*); | 33 GrAtlasMgr*); |
34 ~GrTextStrike(); | 34 ~GrTextStrike(); |
35 | 35 |
36 const GrKey* getFontScalerKey() const { return fFontScalerKey; } | 36 const GrKey* getFontScalerKey() const { return fFontScalerKey; } |
37 GrFontCache* getFontCache() const { return fFontCache; } | 37 GrFontCache* getFontCache() const { return fFontCache; } |
38 GrMaskFormat getMaskFormat() const { return fMaskFormat; } | 38 GrMaskFormat getMaskFormat() const { return fMaskFormat; } |
39 | 39 |
40 inline GrGlyph* getGlyph(GrGlyph::PackedID, GrFontScaler*); | 40 inline GrGlyph* getGlyph(GrGlyph::PackedID, GrFontScaler*); |
41 bool getGlyphAtlas(GrGlyph*, GrFontScaler*, GrDrawTarget::DrawToken currentD
rawToken); | 41 bool getGlyphAtlas(GrGlyph*, GrFontScaler*); |
42 | 42 |
43 // testing | 43 // testing |
44 int countGlyphs() const { return fCache.getArray().count(); } | 44 int countGlyphs() const { return fCache.getArray().count(); } |
45 const GrGlyph* glyphAt(int index) const { | 45 const GrGlyph* glyphAt(int index) const { |
46 return fCache.getArray()[index]; | 46 return fCache.getArray()[index]; |
47 } | 47 } |
48 | 48 |
49 // returns true if a plot was removed | 49 // returns true if a plot was removed |
50 bool removeUnusedPlots(); | 50 bool removeUnusedPlots(); |
51 | 51 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 GrTextStrike* fTail; | 112 GrTextStrike* fTail; |
113 | 113 |
114 GrGpu* fGpu; | 114 GrGpu* fGpu; |
115 GrAtlasMgr* fAtlasMgr[kMaskFormatCount]; | 115 GrAtlasMgr* fAtlasMgr[kMaskFormatCount]; |
116 | 116 |
117 GrTextStrike* generateStrike(GrFontScaler*, const Key&); | 117 GrTextStrike* generateStrike(GrFontScaler*, const Key&); |
118 inline void detachStrikeFromList(GrTextStrike*); | 118 inline void detachStrikeFromList(GrTextStrike*); |
119 }; | 119 }; |
120 | 120 |
121 #endif | 121 #endif |
OLD | NEW |