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

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

Issue 205343008: Distance field fixes for Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix int->float conversion issues Created 6 years, 9 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/GrOvalRenderer.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 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 addGlyphToAtlas(GrGlyph*, GrFontScaler*); 40 bool addGlyphToAtlas(GrGlyph*, GrFontScaler*);
41 41
42 SkISize getAtlasSize() const { return fAtlas.getSize(); }
43
44 // testing 42 // testing
45 int countGlyphs() const { return fCache.getArray().count(); } 43 int countGlyphs() const { return fCache.getArray().count(); }
46 const GrGlyph* glyphAt(int index) const { 44 const GrGlyph* glyphAt(int index) const {
47 return fCache.getArray()[index]; 45 return fCache.getArray()[index];
48 } 46 }
49 47
50 // remove any references to this plot 48 // remove any references to this plot
51 void removePlot(const GrPlot* plot); 49 void removePlot(const GrPlot* plot);
52 50
53 public: 51 public:
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 120
123 GrGpu* fGpu; 121 GrGpu* fGpu;
124 GrAtlasMgr* fAtlasMgr[kAtlasCount]; 122 GrAtlasMgr* fAtlasMgr[kAtlasCount];
125 123
126 GrTextStrike* generateStrike(GrFontScaler*, const Key&); 124 GrTextStrike* generateStrike(GrFontScaler*, const Key&);
127 inline void detachStrikeFromList(GrTextStrike*); 125 inline void detachStrikeFromList(GrTextStrike*);
128 void purgeStrike(GrTextStrike* strike); 126 void purgeStrike(GrTextStrike* strike);
129 }; 127 };
130 128
131 #endif 129 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrOvalRenderer.cpp ('k') | src/gpu/GrTextStrike.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698