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

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

Issue 1204773003: Revert of Refactor GrBufferAllocPools to use resource cache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
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
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