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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 return buffer; | 64 return buffer; |
65 } | 65 } |
66 return this->createQuadIndexBuffer(); | 66 return this->createQuadIndexBuffer(); |
67 } | 67 } |
68 | 68 |
69 | 69 |
70 using GrTextureProvider::assignUniqueKeyToResource; | 70 using GrTextureProvider::assignUniqueKeyToResource; |
71 using GrTextureProvider::findAndRefResourceByUniqueKey; | 71 using GrTextureProvider::findAndRefResourceByUniqueKey; |
72 using GrTextureProvider::abandon; | 72 using GrTextureProvider::abandon; |
73 | 73 |
| 74 GrIndexBuffer* getIndexBuffer(size_t size, bool dynamic, bool calledDuringFl
ush); |
| 75 GrVertexBuffer* getVertBuffer(size_t size, bool dynamic, bool calledDuringFl
ush); |
| 76 |
74 private: | 77 private: |
75 const GrIndexBuffer* createInstancedIndexBuffer(const uint16_t* pattern, | 78 const GrIndexBuffer* createInstancedIndexBuffer(const uint16_t* pattern, |
76 int patternSize, | 79 int patternSize, |
77 int reps, | 80 int reps, |
78 int vertCount, | 81 int vertCount, |
79 const GrUniqueKey& key); | 82 const GrUniqueKey& key); |
80 | 83 |
81 const GrIndexBuffer* createQuadIndexBuffer(); | 84 const GrIndexBuffer* createQuadIndexBuffer(); |
82 | 85 |
83 GrUniqueKey fQuadIndexBufferKey; | 86 GrUniqueKey fQuadIndexBufferKey; |
84 | 87 |
85 typedef GrTextureProvider INHERITED; | 88 typedef GrTextureProvider INHERITED; |
86 }; | 89 }; |
87 | 90 |
88 #endif | 91 #endif |
OLD | NEW |