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

Side by Side Diff: src/gpu/batches/GrAtlasTextBatch.h

Issue 1831133004: Revert of Consolidate GPU buffer implementations (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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/batches/GrAAStrokeRectBatch.cpp ('k') | src/gpu/batches/GrAtlasTextBatch.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 GrAtlasTextBatch_DEFINED 8 #ifndef GrAtlasTextBatch_DEFINED
9 #define GrAtlasTextBatch_DEFINED 9 #define GrAtlasTextBatch_DEFINED
10 10
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 protected: 92 protected:
93 void computePipelineOptimizations(GrInitInvariantOutput* color, 93 void computePipelineOptimizations(GrInitInvariantOutput* color,
94 GrInitInvariantOutput* coverage, 94 GrInitInvariantOutput* coverage,
95 GrBatchToXPOverrides* overrides) const ove rride; 95 GrBatchToXPOverrides* overrides) const ove rride;
96 96
97 97
98 private: 98 private:
99 void initBatchTracker(const GrXPOverridesForBatch& overrides) override; 99 void initBatchTracker(const GrXPOverridesForBatch& overrides) override;
100 100
101 struct FlushInfo { 101 struct FlushInfo {
102 SkAutoTUnref<const GrBuffer> fVertexBuffer; 102 SkAutoTUnref<const GrVertexBuffer> fVertexBuffer;
103 SkAutoTUnref<const GrBuffer> fIndexBuffer; 103 SkAutoTUnref<const GrIndexBuffer> fIndexBuffer;
104 int fGlyphsToFlush; 104 int fGlyphsToFlush;
105 int fVertexOffset; 105 int fVertexOffset;
106 }; 106 };
107 107
108 void onPrepareDraws(Target* target) const override; 108 void onPrepareDraws(Target* target) const override;
109 109
110 GrAtlasTextBatch() : INHERITED(ClassID()) {} // initialized in factory funct ions. 110 GrAtlasTextBatch() : INHERITED(ClassID()) {} // initialized in factory funct ions.
111 111
112 ~GrAtlasTextBatch() { 112 ~GrAtlasTextBatch() {
113 for (int i = 0; i < fGeoCount; i++) { 113 for (int i = 0; i < fGeoCount; i++) {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 } 209 }
210 210
211 private: 211 private:
212 const GrAtlasTextBatch* fBatch; 212 const GrAtlasTextBatch* fBatch;
213 GrVertexBatch::Target* fTarget; 213 GrVertexBatch::Target* fTarget;
214 GrAtlasTextBatch::FlushInfo* fFlushInfo; 214 GrAtlasTextBatch::FlushInfo* fFlushInfo;
215 const GrGeometryProcessor* fGP; 215 const GrGeometryProcessor* fGP;
216 }; 216 };
217 217
218 #endif 218 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrAAStrokeRectBatch.cpp ('k') | src/gpu/batches/GrAtlasTextBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698