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/GrStencilAndCoverTextContext.h

Issue 1506823004: Remove drawPathsFromRange from GrDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: formatting Created 5 years 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/GrDrawTarget.cpp ('k') | src/gpu/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 "GrTextContext.h" 11 #include "GrTextContext.h"
12 #include "GrDrawTarget.h" 12 #include "GrDrawTarget.h"
13 #include "GrStrokeInfo.h" 13 #include "GrStrokeInfo.h"
14 #include "SkTHash.h" 14 #include "SkTHash.h"
15 #include "SkTInternalLList.h" 15 #include "SkTInternalLList.h"
16 #include "SkTLList.h" 16 #include "SkTLList.h"
17 17
18 class GrTextStrike; 18 class GrTextStrike;
19 class GrPath; 19 class GrPath;
20 class SkSurfaceProps; 20 class SkSurfaceProps;
21 class GrPathRangeDraw;
21 22
22 /* 23 /*
23 * This class implements text rendering using stencil and cover path rendering 24 * This class implements text rendering using stencil and cover path rendering
24 * (by the means of GrDrawTarget::drawPath). 25 * (by the means of GrDrawTarget::drawPath).
25 * This class exposes the functionality through GrTextContext interface. 26 * This class exposes the functionality through GrTextContext interface.
26 */ 27 */
27 class GrStencilAndCoverTextContext : public GrTextContext { 28 class GrStencilAndCoverTextContext : public GrTextContext {
28 public: 29 public:
29 static GrStencilAndCoverTextContext* Create(GrContext*, const SkSurfaceProps &); 30 static GrStencilAndCoverTextContext* Create(GrContext*, const SkSurfaceProps &);
30 31
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 134
134 SkTHashMap<uint32_t, TextBlob*> fBlobIdCache; 135 SkTHashMap<uint32_t, TextBlob*> fBlobIdCache;
135 SkTHashTable<TextBlob*, const TextBlob::Key&, TextBlob> fBlobKeyCache; 136 SkTHashTable<TextBlob*, const TextBlob::Key&, TextBlob> fBlobKeyCache;
136 SkTInternalLList<TextBlob> fLRUList; 137 SkTInternalLList<TextBlob> fLRUList;
137 size_t fCacheSize; 138 size_t fCacheSize;
138 139
139 typedef GrTextContext INHERITED; 140 typedef GrTextContext INHERITED;
140 }; 141 };
141 142
142 #endif 143 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrStencilAndCoverTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698