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

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

Issue 149853002: Improved distance field sampling (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove unnecessary offset attribute. Created 6 years, 10 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
« no previous file with comments | « src/gpu/GrDistanceFieldTextContext.cpp ('k') | src/gpu/effects/GrDistanceFieldTextureEffect.h » ('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 21 matching lines...) Expand all
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 getGlyphAtlas(GrGlyph*, GrFontScaler*); 40 bool getGlyphAtlas(GrGlyph*, GrFontScaler*);
41 41
42 SkISize getAtlasSize() const { return fAtlas.getSize(); }
43
42 // testing 44 // testing
43 int countGlyphs() const { return fCache.getArray().count(); } 45 int countGlyphs() const { return fCache.getArray().count(); }
44 const GrGlyph* glyphAt(int index) const { 46 const GrGlyph* glyphAt(int index) const {
45 return fCache.getArray()[index]; 47 return fCache.getArray()[index];
46 } 48 }
47 49
48 // returns true if a plot was removed 50 // returns true if a plot was removed
49 bool removeUnusedPlots(); 51 bool removeUnusedPlots();
50 52
51 public: 53 public:
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 130
129 GrGpu* fGpu; 131 GrGpu* fGpu;
130 GrAtlasMgr* fAtlasMgr[kAtlasCount]; 132 GrAtlasMgr* fAtlasMgr[kAtlasCount];
131 133
132 GrTextStrike* generateStrike(GrFontScaler*, const Key&); 134 GrTextStrike* generateStrike(GrFontScaler*, const Key&);
133 inline void detachStrikeFromList(GrTextStrike*); 135 inline void detachStrikeFromList(GrTextStrike*);
134 void purgeStrike(GrTextStrike* strike); 136 void purgeStrike(GrTextStrike* strike);
135 }; 137 };
136 138
137 #endif 139 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDistanceFieldTextContext.cpp ('k') | src/gpu/effects/GrDistanceFieldTextureEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698