| 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 21 matching lines...) Expand all Loading... |
| 32 GrTextStrike(GrFontCache*, const GrKey* fontScalerKey, GrMaskFormat, GrAtlas
Mgr*); | 32 GrTextStrike(GrFontCache*, const GrKey* fontScalerKey, GrMaskFormat, GrAtlas
Mgr*); |
| 33 ~GrTextStrike(); | 33 ~GrTextStrike(); |
| 34 | 34 |
| 35 const GrKey* getFontScalerKey() const { return fFontScalerKey; } | 35 const GrKey* getFontScalerKey() const { return fFontScalerKey; } |
| 36 GrFontCache* getFontCache() const { return fFontCache; } | 36 GrFontCache* getFontCache() const { return fFontCache; } |
| 37 GrMaskFormat getMaskFormat() const { return fMaskFormat; } | 37 GrMaskFormat getMaskFormat() const { return fMaskFormat; } |
| 38 | 38 |
| 39 inline GrGlyph* getGlyph(GrGlyph::PackedID, GrFontScaler*); | 39 inline GrGlyph* getGlyph(GrGlyph::PackedID, GrFontScaler*); |
| 40 bool addGlyphToAtlas(GrGlyph*, GrFontScaler*); | 40 bool addGlyphToAtlas(GrGlyph*, GrFontScaler*); |
| 41 | 41 |
| 42 SkISize getAtlasSize() const { return fAtlas.getSize(); } | |
| 43 | |
| 44 // testing | 42 // testing |
| 45 int countGlyphs() const { return fCache.getArray().count(); } | 43 int countGlyphs() const { return fCache.getArray().count(); } |
| 46 const GrGlyph* glyphAt(int index) const { | 44 const GrGlyph* glyphAt(int index) const { |
| 47 return fCache.getArray()[index]; | 45 return fCache.getArray()[index]; |
| 48 } | 46 } |
| 49 | 47 |
| 50 // remove any references to this plot | 48 // remove any references to this plot |
| 51 void removePlot(const GrPlot* plot); | 49 void removePlot(const GrPlot* plot); |
| 52 | 50 |
| 53 public: | 51 public: |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 120 |
| 123 GrGpu* fGpu; | 121 GrGpu* fGpu; |
| 124 GrAtlasMgr* fAtlasMgr[kAtlasCount]; | 122 GrAtlasMgr* fAtlasMgr[kAtlasCount]; |
| 125 | 123 |
| 126 GrTextStrike* generateStrike(GrFontScaler*, const Key&); | 124 GrTextStrike* generateStrike(GrFontScaler*, const Key&); |
| 127 inline void detachStrikeFromList(GrTextStrike*); | 125 inline void detachStrikeFromList(GrTextStrike*); |
| 128 void purgeStrike(GrTextStrike* strike); | 126 void purgeStrike(GrTextStrike* strike); |
| 129 }; | 127 }; |
| 130 | 128 |
| 131 #endif | 129 #endif |
| OLD | NEW |