| OLD | NEW |
| 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 Loading... |
| 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 SkScalerContextEffects&, | 88 GrPathRange* createGlyphs(const SkTypeface*, const SkDescriptor*, const GrSt
rokeInfo&); |
| 89 const SkDescriptor*, const GrStrokeInfo&); | |
| 90 | 89 |
| 91 using GrTextureProvider::assignUniqueKeyToResource; | 90 using GrTextureProvider::assignUniqueKeyToResource; |
| 92 using GrTextureProvider::findAndRefResourceByUniqueKey; | 91 using GrTextureProvider::findAndRefResourceByUniqueKey; |
| 93 using GrTextureProvider::findAndRefTextureByUniqueKey; | 92 using GrTextureProvider::findAndRefTextureByUniqueKey; |
| 94 using GrTextureProvider::abandon; | 93 using GrTextureProvider::abandon; |
| 95 | 94 |
| 96 enum Flags { | 95 enum Flags { |
| 97 /** If the caller intends to do direct reads/writes to/from the CPU then
this flag must be | 96 /** If the caller intends to do direct reads/writes to/from the CPU then
this flag must be |
| 98 * set when accessing resources during a GrDrawTarget flush. This inclu
des the execution of | 97 * set when accessing resources during a GrDrawTarget flush. This inclu
des the execution of |
| 99 * GrBatch objects. The reason is that these memory operations are done
immediately and | 98 * 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 Loading... |
| 166 const GrUniqueKey& key); | 165 const GrUniqueKey& key); |
| 167 | 166 |
| 168 const GrBuffer* createQuadIndexBuffer(); | 167 const GrBuffer* createQuadIndexBuffer(); |
| 169 | 168 |
| 170 GrUniqueKey fQuadIndexBufferKey; | 169 GrUniqueKey fQuadIndexBufferKey; |
| 171 | 170 |
| 172 typedef GrTextureProvider INHERITED; | 171 typedef GrTextureProvider INHERITED; |
| 173 }; | 172 }; |
| 174 | 173 |
| 175 #endif | 174 #endif |
| OLD | NEW |