| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 */ | 79 */ |
| 80 GrPath* createPath(const SkPath&, const GrStrokeInfo&); | 80 GrPath* createPath(const SkPath&, const GrStrokeInfo&); |
| 81 GrPathRange* createPathRange(GrPathRange::PathGenerator*, const GrStrokeInfo
&); | 81 GrPathRange* createPathRange(GrPathRange::PathGenerator*, const GrStrokeInfo
&); |
| 82 GrPathRange* createGlyphs(const SkTypeface*, const SkDescriptor*, const GrSt
rokeInfo&); | 82 GrPathRange* createGlyphs(const SkTypeface*, const SkDescriptor*, const GrSt
rokeInfo&); |
| 83 | 83 |
| 84 | 84 |
| 85 using GrTextureProvider::assignUniqueKeyToResource; | 85 using GrTextureProvider::assignUniqueKeyToResource; |
| 86 using GrTextureProvider::findAndRefResourceByUniqueKey; | 86 using GrTextureProvider::findAndRefResourceByUniqueKey; |
| 87 using GrTextureProvider::abandon; | 87 using GrTextureProvider::abandon; |
| 88 | 88 |
| 89 GrIndexBuffer* getIndexBuffer(size_t size, bool dynamic, bool calledDuringFl
ush); |
| 90 GrVertexBuffer* getVertexBuffer(size_t size, bool dynamic, bool calledDuring
Flush); |
| 91 |
| 89 private: | 92 private: |
| 90 const GrIndexBuffer* createInstancedIndexBuffer(const uint16_t* pattern, | 93 const GrIndexBuffer* createInstancedIndexBuffer(const uint16_t* pattern, |
| 91 int patternSize, | 94 int patternSize, |
| 92 int reps, | 95 int reps, |
| 93 int vertCount, | 96 int vertCount, |
| 94 const GrUniqueKey& key); | 97 const GrUniqueKey& key); |
| 95 | 98 |
| 96 const GrIndexBuffer* createQuadIndexBuffer(); | 99 const GrIndexBuffer* createQuadIndexBuffer(); |
| 97 | 100 |
| 98 GrUniqueKey fQuadIndexBufferKey; | 101 GrUniqueKey fQuadIndexBufferKey; |
| 99 | 102 |
| 100 typedef GrTextureProvider INHERITED; | 103 typedef GrTextureProvider INHERITED; |
| 101 }; | 104 }; |
| 102 | 105 |
| 103 #endif | 106 #endif |
| OLD | NEW |