| 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 |  | 
| 92 private: | 89 private: | 
| 93     const GrIndexBuffer* createInstancedIndexBuffer(const uint16_t* pattern, | 90     const GrIndexBuffer* createInstancedIndexBuffer(const uint16_t* pattern, | 
| 94                                                     int patternSize, | 91                                                     int patternSize, | 
| 95                                                     int reps, | 92                                                     int reps, | 
| 96                                                     int vertCount, | 93                                                     int vertCount, | 
| 97                                                     const GrUniqueKey& key); | 94                                                     const GrUniqueKey& key); | 
| 98 | 95 | 
| 99     const GrIndexBuffer* createQuadIndexBuffer(); | 96     const GrIndexBuffer* createQuadIndexBuffer(); | 
| 100 | 97 | 
| 101     GrUniqueKey fQuadIndexBufferKey; | 98     GrUniqueKey fQuadIndexBufferKey; | 
| 102 | 99 | 
| 103     typedef GrTextureProvider INHERITED; | 100     typedef GrTextureProvider INHERITED; | 
| 104 }; | 101 }; | 
| 105 | 102 | 
| 106 #endif | 103 #endif | 
| OLD | NEW | 
|---|