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 GrDrawPathBatch_DEFINED | 8 #ifndef GrDrawPathBatch_DEFINED |
9 #define GrDrawPathBatch_DEFINED | 9 #define GrDrawPathBatch_DEFINED |
10 | 10 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 GrDrawPathRangeBatch(const SkMatrix& viewMatrix, const SkMatrix& localMatrix
, GrColor color, | 164 GrDrawPathRangeBatch(const SkMatrix& viewMatrix, const SkMatrix& localMatrix
, GrColor color, |
165 GrPathRange* range, GrPathRangeDraw* draw); | 165 GrPathRange* range, GrPathRangeDraw* draw); |
166 | 166 |
167 bool onCombineIfPossible(GrBatch* t, const GrCaps& caps) override; | 167 bool onCombineIfPossible(GrBatch* t, const GrCaps& caps) override; |
168 | 168 |
169 void onPrepare(GrBatchFlushState*) override {} | 169 void onPrepare(GrBatchFlushState*) override {} |
170 | 170 |
171 void onDraw(GrBatchFlushState* state) override; | 171 void onDraw(GrBatchFlushState* state) override; |
172 | 172 |
173 typedef GrPendingIOResource<const GrPathRange, kRead_GrIOType> PendingPathRa
nge; | 173 typedef GrPendingIOResource<const GrPathRange, kRead_GrIOType> PendingPathRa
nge; |
174 typedef SkTLList<GrPathRangeDraw*> DrawList; | 174 typedef SkTLList<GrPathRangeDraw*, 4> DrawList; |
175 PendingPathRange fPathRange; | 175 PendingPathRange fPathRange; |
176 DrawList fDraws; | 176 DrawList fDraws; |
177 int fTotalPathCount; | 177 int fTotalPathCount; |
178 SkMatrix fLocalMatrix; | 178 SkMatrix fLocalMatrix; |
179 | 179 |
180 typedef GrDrawPathBatchBase INHERITED; | 180 typedef GrDrawPathBatchBase INHERITED; |
181 }; | 181 }; |
182 | 182 |
183 #endif | 183 #endif |
OLD | NEW |