| 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 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 Loading... |
| 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 |
| OLD | NEW |