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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 geo.fBlob->computeSubRunBounds(&fBounds, geo.fRun, geo.fSubRun, geo.fVie
wMatrix, geo.fX, | 84 geo.fBlob->computeSubRunBounds(&fBounds, geo.fRun, geo.fSubRun, geo.fVie
wMatrix, geo.fX, |
85 geo.fY); | 85 geo.fY); |
86 } | 86 } |
87 | 87 |
88 const char* name() const override { return "TextBatch"; } | 88 const char* name() const override { return "TextBatch"; } |
89 | 89 |
90 SkString dumpInfo() const override; | 90 SkString dumpInfo() const override; |
91 | 91 |
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 GrBuffer> fVertexBuffer; |
103 SkAutoTUnref<const GrBuffer> fIndexBuffer; | 103 SkAutoTUnref<const GrBuffer> fIndexBuffer; |
(...skipping 105 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 |