| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 * Factories for GrPath and GrPathRange objects. It's an error to call these
if path rendering | 85 * Factories for GrPath and GrPathRange objects. It's an error to call these
if path rendering |
| 86 * is not supported. | 86 * is not supported. |
| 87 */ | 87 */ |
| 88 GrPath* createPath(const SkPath&, const GrStrokeInfo&); | 88 GrPath* createPath(const SkPath&, const GrStrokeInfo&); |
| 89 GrPathRange* createPathRange(GrPathRange::PathGenerator*, const GrStrokeInfo
&); | 89 GrPathRange* createPathRange(GrPathRange::PathGenerator*, const GrStrokeInfo
&); |
| 90 GrPathRange* createGlyphs(const SkTypeface*, const SkDescriptor*, const GrSt
rokeInfo&); | 90 GrPathRange* createGlyphs(const SkTypeface*, const SkDescriptor*, const GrSt
rokeInfo&); |
| 91 | 91 |
| 92 using GrTextureProvider::assignUniqueKeyToResource; | 92 using GrTextureProvider::assignUniqueKeyToResource; |
| 93 using GrTextureProvider::findAndRefResourceByUniqueKey; | 93 using GrTextureProvider::findAndRefResourceByUniqueKey; |
| 94 using GrTextureProvider::findAndRefTextureByUniqueKey; | 94 using GrTextureProvider::findAndRefTextureByUniqueKey; |
| 95 using GrTextureProvider::findAndRefRenderTargetByUniqueKey; |
| 95 using GrTextureProvider::abandon; | 96 using GrTextureProvider::abandon; |
| 96 | 97 |
| 97 enum Flags { | 98 enum Flags { |
| 98 /** If the caller intends to do direct reads/writes to/from the CPU then
this flag must be | 99 /** If the caller intends to do direct reads/writes to/from the CPU then
this flag must be |
| 99 * set when accessing resources during a GrDrawTarget flush. This inclu
des the execution of | 100 * set when accessing resources during a GrDrawTarget flush. This inclu
des the execution of |
| 100 * GrBatch objects. The reason is that these memory operations are done
immediately and | 101 * GrBatch objects. The reason is that these memory operations are done
immediately and |
| 101 * will occur out of order WRT the operations being flushed. | 102 * will occur out of order WRT the operations being flushed. |
| 102 * Make this automatic: https://bug.skia.org/4156 | 103 * Make this automatic: https://bug.skia.org/4156 |
| 103 */ | 104 */ |
| 104 kNoPendingIO_Flag = kNoPendingIO_ScratchTextureFlag, | 105 kNoPendingIO_Flag = kNoPendingIO_ScratchTextureFlag, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 const GrUniqueKey& key); | 165 const GrUniqueKey& key); |
| 165 | 166 |
| 166 const GrIndexBuffer* createQuadIndexBuffer(); | 167 const GrIndexBuffer* createQuadIndexBuffer(); |
| 167 | 168 |
| 168 GrUniqueKey fQuadIndexBufferKey; | 169 GrUniqueKey fQuadIndexBufferKey; |
| 169 | 170 |
| 170 typedef GrTextureProvider INHERITED; | 171 typedef GrTextureProvider INHERITED; |
| 171 }; | 172 }; |
| 172 | 173 |
| 173 #endif | 174 #endif |
| OLD | NEW |