Chromium Code Reviews| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 102 void validate() const; | 102 void validate() const; |
| 103 #else | 103 #else |
| 104 void validate() const {} | 104 void validate() const {} |
| 105 #endif | 105 #endif |
| 106 | 106 |
| 107 #ifdef SK_DEVELOPER | 107 #ifdef SK_DEVELOPER |
| 108 void dump() const; | 108 void dump() const; |
| 109 #endif | 109 #endif |
| 110 | 110 |
| 111 private: | 111 private: |
| 112 friend class GrFontPurgeListener; | 112 friend class GrFontPurgeListener; |
|
robertphillips
2013/12/02 21:05:40
// The current set of atlases are: ...?
| |
| 113 static const int kAtlasCount = 3; | |
| 113 | 114 |
| 114 class Key; | 115 class Key; |
| 115 GrTHashTable<GrTextStrike, Key, 8> fCache; | 116 GrTHashTable<GrTextStrike, Key, 8> fCache; |
| 116 // for LRU | 117 // for LRU |
| 117 GrTextStrike* fHead; | 118 GrTextStrike* fHead; |
| 118 GrTextStrike* fTail; | 119 GrTextStrike* fTail; |
| 119 | 120 |
| 120 GrGpu* fGpu; | 121 GrGpu* fGpu; |
| 121 GrAtlasMgr* fAtlasMgr[kMaskFormatCount]; | 122 GrAtlasMgr* fAtlasMgr[kAtlasCount]; |
| 122 | 123 |
| 123 GrTextStrike* generateStrike(GrFontScaler*, const Key&); | 124 GrTextStrike* generateStrike(GrFontScaler*, const Key&); |
| 124 inline void detachStrikeFromList(GrTextStrike*); | 125 inline void detachStrikeFromList(GrTextStrike*); |
| 125 void purgeStrike(GrTextStrike* strike); | 126 void purgeStrike(GrTextStrike* strike); |
| 126 }; | 127 }; |
| 127 | 128 |
| 128 #endif | 129 #endif |
| OLD | NEW |