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 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 Loading... |
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 GrVertexBuffer> fVertexBuffer; | 102 SkAutoTUnref<const GrBuffer> fVertexBuffer; |
103 SkAutoTUnref<const GrIndexBuffer> fIndexBuffer; | 103 SkAutoTUnref<const GrBuffer> 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 Loading... |
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 |
OLD | NEW |