Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: src/gpu/GrTextStrike.h

Issue 24608002: First pass at font cache refactor: Create an atlas manager per texture (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Make sure to set the MaskFormat Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 private: 104 private:
105 friend class GrFontPurgeListener; 105 friend class GrFontPurgeListener;
106 106
107 class Key; 107 class Key;
108 GrTHashTable<GrTextStrike, Key, 8> fCache; 108 GrTHashTable<GrTextStrike, Key, 8> fCache;
109 // for LRU 109 // for LRU
110 GrTextStrike* fHead; 110 GrTextStrike* fHead;
111 GrTextStrike* fTail; 111 GrTextStrike* fTail;
112 112
113 GrGpu* fGpu; 113 GrGpu* fGpu;
114 GrAtlasMgr* fAtlasMgr; 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
OLDNEW
« include/gpu/GrTypes.h ('K') | « src/gpu/GrAtlas.cpp ('k') | src/gpu/GrTextStrike.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698