Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: src/gpu/GrResourceProvider.h

Issue 1139753002: Refactor GrBufferAllocPools to use resource cache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix merge issue Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrIndexBuffer.h ('k') | src/gpu/GrResourceProvider.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrIndexBuffer.h ('k') | src/gpu/GrResourceProvider.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698