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

Side by Side Diff: src/gpu/text/GrStencilAndCoverTextContext.h

Issue 1967513002: Revert of Replace GrStrokeInfo with GrStyle. (Closed) Base URL: https://chromium.googlesource.com/skia.git@resscale
Patch Set: Created 4 years, 7 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/gl/GrGLPathRendering.cpp ('k') | src/gpu/text/GrStencilAndCoverTextContext.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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrStencilAndCoverTextContext_DEFINED 8 #ifndef GrStencilAndCoverTextContext_DEFINED
9 #define GrStencilAndCoverTextContext_DEFINED 9 #define GrStencilAndCoverTextContext_DEFINED
10 10
11 #include "GrDrawContext.h" 11 #include "GrDrawContext.h"
12 #include "GrStyle.h" 12 #include "GrStrokeInfo.h"
13 #include "SkDrawFilter.h" 13 #include "SkDrawFilter.h"
14 #include "SkTextBlob.h" 14 #include "SkTextBlob.h"
15 #include "SkTHash.h" 15 #include "SkTHash.h"
16 #include "SkTInternalLList.h" 16 #include "SkTInternalLList.h"
17 #include "SkTLList.h" 17 #include "SkTLList.h"
18 #include "batches/GrDrawPathBatch.h" 18 #include "batches/GrDrawPathBatch.h"
19 19
20 class GrAtlasTextContext; 20 class GrAtlasTextContext;
21 class GrTextStrike; 21 class GrTextStrike;
22 class GrPath; 22 class GrPath;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 size_t computeSizeInCache() const; 88 size_t computeSizeInCache() const;
89 89
90 private: 90 private:
91 typedef GrDrawPathRangeBatch::InstanceData InstanceData; 91 typedef GrDrawPathRangeBatch::InstanceData InstanceData;
92 92
93 SkGlyphCache* getGlyphCache() const; 93 SkGlyphCache* getGlyphCache() const;
94 GrPathRange* createGlyphs(GrContext*) const; 94 GrPathRange* createGlyphs(GrContext*) const;
95 void appendGlyph(const SkGlyph&, const SkPoint&, FallbackBlobBuilder*); 95 void appendGlyph(const SkGlyph&, const SkPoint&, FallbackBlobBuilder*);
96 96
97 GrStyle fStyle; 97 GrStrokeInfo fStroke;
98 SkPaint fFont; 98 SkPaint fFont;
99 SkScalar fTextRatio; 99 SkScalar fTextRatio;
100 float fTextInverseRatio; 100 float fTextInverseRatio;
101 bool fUsingRawGlyphPaths; 101 bool fUsingRawGlyphPaths;
102 GrUniqueKey fGlyphPathsKey; 102 GrUniqueKey fGlyphPathsKey;
103 int fTotalGlyphCount; 103 int fTotalGlyphCount;
104 SkAutoTUnref<InstanceData> fInstanceData; 104 SkAutoTUnref<InstanceData> fInstanceData;
105 int fFallbackGlyphCount; 105 int fFallbackGlyphCount;
106 SkAutoTUnref<const SkTextBlob> fFallbackTextBlob; 106 SkAutoTUnref<const SkTextBlob> fFallbackTextBlob;
107 mutable SkGlyphCache* fDetachedGlyphCache; 107 mutable SkGlyphCache* fDetachedGlyphCache;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void purgeToFit(const TextBlob&); 148 void purgeToFit(const TextBlob&);
149 149
150 GrAtlasTextContext* fFallbackTextConte xt; 150 GrAtlasTextContext* fFallbackTextConte xt;
151 SkTHashMap<uint32_t, TextBlob*> fBlobIdCache; 151 SkTHashMap<uint32_t, TextBlob*> fBlobIdCache;
152 SkTHashTable<TextBlob*, const TextBlob::Key&, TextBlob> fBlobKeyCache; 152 SkTHashTable<TextBlob*, const TextBlob::Key&, TextBlob> fBlobKeyCache;
153 SkTInternalLList<TextBlob> fLRUList; 153 SkTInternalLList<TextBlob> fLRUList;
154 size_t fCacheSize; 154 size_t fCacheSize;
155 }; 155 };
156 156
157 #endif 157 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLPathRendering.cpp ('k') | src/gpu/text/GrStencilAndCoverTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698