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

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

Issue 1880873002: Revert "Revert of Pass effects directly to fontcache (patchset #8 id:140001 of https://codereview.c… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « src/gpu/GrPathRendering.cpp ('k') | src/gpu/GrResourceProvider.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 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 const GrUniqueKey& key); 166 const GrUniqueKey& key);
166 167
167 const GrBuffer* createQuadIndexBuffer(); 168 const GrBuffer* createQuadIndexBuffer();
168 169
169 GrUniqueKey fQuadIndexBufferKey; 170 GrUniqueKey fQuadIndexBufferKey;
170 171
171 typedef GrTextureProvider INHERITED; 172 typedef GrTextureProvider INHERITED;
172 }; 173 };
173 174
174 #endif 175 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPathRendering.cpp ('k') | src/gpu/GrResourceProvider.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698