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

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

Issue 24751003: GrAtlas refactor: Replace GrMaskFormat usage in GrAtlas with GrPixelConfig. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix nits 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
« no previous file with comments | « src/gpu/GrAtlas.cpp ('k') | src/gpu/GrTextStrike.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrAtlas.cpp ('k') | src/gpu/GrTextStrike.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698