| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 private: | 58 private: |
| 59 class Key; | 59 class Key; |
| 60 GrTHashTable<GrGlyph, Key, 7> fCache; | 60 GrTHashTable<GrGlyph, Key, 7> fCache; |
| 61 const GrKey* fFontScalerKey; | 61 const GrKey* fFontScalerKey; |
| 62 GrTAllocPool<GrGlyph> fPool; | 62 GrTAllocPool<GrGlyph> fPool; |
| 63 | 63 |
| 64 GrFontCache* fFontCache; | 64 GrFontCache* fFontCache; |
| 65 GrAtlasMgr* fAtlasMgr; | 65 GrAtlasMgr* fAtlasMgr; |
| 66 GrAtlas* fAtlas; // linklist | 66 GrAtlas* fAtlas; // linklist |
| 67 | 67 |
| 68 GrMaskFormat fMaskFormat; | 68 GrMaskFormat fMaskFormat; |
| 69 | 69 |
| 70 GrGlyph* generateGlyph(GrGlyph::PackedID packed, GrFontScaler* scaler); | 70 GrGlyph* generateGlyph(GrGlyph::PackedID packed, GrFontScaler* scaler); |
| 71 // returns true if after the purge, the strike is empty | 71 // returns true if after the purge, the strike is empty |
| 72 bool purgeAtlasAtY(GrAtlas* atlas, int yCoord); | 72 bool purgeAtlasAtY(GrAtlas* atlas, int yCoord); |
| 73 | 73 |
| 74 friend class GrFontCache; | 74 friend class GrFontCache; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 class GrFontCache { | 77 class GrFontCache { |
| 78 public: | 78 public: |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 GrGpu* fGpu; | 113 GrGpu* fGpu; |
| 114 GrAtlasMgr* fAtlasMgr[kMaskFormatCount]; | 114 GrAtlasMgr* fAtlasMgr[kMaskFormatCount]; |
| 115 | 115 |
| 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 |