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

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

Issue 26253003: Fix for blinking/corrupted text in Canvas 2D. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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/GrTextContext.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 20 matching lines...) Expand all
31 public: 31 public:
32 GrTextStrike(GrFontCache*, const GrKey* fontScalerKey, GrMaskFormat, 32 GrTextStrike(GrFontCache*, const GrKey* fontScalerKey, GrMaskFormat,
33 GrAtlasMgr*); 33 GrAtlasMgr*);
34 ~GrTextStrike(); 34 ~GrTextStrike();
35 35
36 const GrKey* getFontScalerKey() const { return fFontScalerKey; } 36 const GrKey* getFontScalerKey() const { return fFontScalerKey; }
37 GrFontCache* getFontCache() const { return fFontCache; } 37 GrFontCache* getFontCache() const { return fFontCache; }
38 GrMaskFormat getMaskFormat() const { return fMaskFormat; } 38 GrMaskFormat getMaskFormat() const { return fMaskFormat; }
39 39
40 inline GrGlyph* getGlyph(GrGlyph::PackedID, GrFontScaler*); 40 inline GrGlyph* getGlyph(GrGlyph::PackedID, GrFontScaler*);
41 bool getGlyphAtlas(GrGlyph*, GrFontScaler*, GrDrawTarget::DrawToken currentD rawToken); 41 bool getGlyphAtlas(GrGlyph*, GrFontScaler*);
42 42
43 // testing 43 // testing
44 int countGlyphs() const { return fCache.getArray().count(); } 44 int countGlyphs() const { return fCache.getArray().count(); }
45 const GrGlyph* glyphAt(int index) const { 45 const GrGlyph* glyphAt(int index) const {
46 return fCache.getArray()[index]; 46 return fCache.getArray()[index];
47 } 47 }
48 48
49 // returns true if a plot was removed 49 // returns true if a plot was removed
50 bool removeUnusedPlots(); 50 bool removeUnusedPlots();
51 51
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 GrTextStrike* fTail; 112 GrTextStrike* fTail;
113 113
114 GrGpu* fGpu; 114 GrGpu* fGpu;
115 GrAtlasMgr* fAtlasMgr[kMaskFormatCount]; 115 GrAtlasMgr* fAtlasMgr[kMaskFormatCount];
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/GrTextContext.cpp ('k') | src/gpu/GrTextStrike.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698