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

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

Issue 1863013003: Pass effects directly to fontcache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: removed DUMMY effects Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 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 GrResourceProvider_DEFINED 8 #ifndef GrResourceProvider_DEFINED
9 #define GrResourceProvider_DEFINED 9 #define GrResourceProvider_DEFINED
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 } 78 }
79 return this->createQuadIndexBuffer(); 79 return this->createQuadIndexBuffer();
80 } 80 }
81 81
82 /** 82 /**
83 * Factories for GrPath and GrPathRange objects. It's an error to call these if path rendering 83 * Factories for GrPath and GrPathRange objects. It's an error to call these if path rendering
84 * is not supported. 84 * is not supported.
85 */ 85 */
86 GrPath* createPath(const SkPath&, const GrStrokeInfo&); 86 GrPath* createPath(const SkPath&, const GrStrokeInfo&);
87 GrPathRange* createPathRange(GrPathRange::PathGenerator*, const GrStrokeInfo &); 87 GrPathRange* createPathRange(GrPathRange::PathGenerator*, const GrStrokeInfo &);
88 GrPathRange* createGlyphs(const SkTypeface*, const SkDescriptor*, const GrSt rokeInfo&); 88 GrPathRange* createGlyphs(const SkTypeface*, const SkScalerContextEffects&,
89 const SkDescriptor*, const GrStrokeInfo&);
89 90
90 using GrTextureProvider::assignUniqueKeyToResource; 91 using GrTextureProvider::assignUniqueKeyToResource;
91 using GrTextureProvider::findAndRefResourceByUniqueKey; 92 using GrTextureProvider::findAndRefResourceByUniqueKey;
92 using GrTextureProvider::findAndRefTextureByUniqueKey; 93 using GrTextureProvider::findAndRefTextureByUniqueKey;
93 using GrTextureProvider::abandon; 94 using GrTextureProvider::abandon;
94 95
95 enum Flags { 96 enum Flags {
96 /** If the caller intends to do direct reads/writes to/from the CPU then this flag must be 97 /** If the caller intends to do direct reads/writes to/from the CPU then this flag must be
97 * set when accessing resources during a GrDrawTarget flush. This inclu des the execution of 98 * set when accessing resources during a GrDrawTarget flush. This inclu des the execution of
98 * GrBatch objects. The reason is that these memory operations are done immediately and 99 * GrBatch objects. The reason is that these memory operations are done immediately and
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 const GrUniqueKey& key); 156 const GrUniqueKey& key);
156 157
157 const GrBuffer* createQuadIndexBuffer(); 158 const GrBuffer* createQuadIndexBuffer();
158 159
159 GrUniqueKey fQuadIndexBufferKey; 160 GrUniqueKey fQuadIndexBufferKey;
160 161
161 typedef GrTextureProvider INHERITED; 162 typedef GrTextureProvider INHERITED;
162 }; 163 };
163 164
164 #endif 165 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698