| 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 GrDrawVerticesBatch_DEFINED | 8 #ifndef GrDrawVerticesBatch_DEFINED |
| 9 #define GrDrawVerticesBatch_DEFINED | 9 #define GrDrawVerticesBatch_DEFINED |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 vertexCount, indices, indexCount
, colors, | 38 vertexCount, indices, indexCount
, colors, |
| 39 localCoords, bounds)); | 39 localCoords, bounds)); |
| 40 } | 40 } |
| 41 | 41 |
| 42 const char* name() const override { return "DrawVerticesBatch"; } | 42 const char* name() const override { return "DrawVerticesBatch"; } |
| 43 | 43 |
| 44 void getInvariantOutputColor(GrInitInvariantOutput* out) const override; | 44 void getInvariantOutputColor(GrInitInvariantOutput* out) const override; |
| 45 | 45 |
| 46 void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override; | 46 void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override; |
| 47 | 47 |
| 48 void initBatchTracker(const GrPipelineInfo& init) override; | 48 void initBatchTracker(const GrPipelineOptimizations&) override; |
| 49 | 49 |
| 50 void generateGeometry(GrBatchTarget* batchTarget) override; | 50 void generateGeometry(GrBatchTarget* batchTarget) override; |
| 51 | 51 |
| 52 SkSTArray<1, Geometry, true>* geoData() { return &fGeoData; } | 52 SkSTArray<1, Geometry, true>* geoData() { return &fGeoData; } |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 GrDrawVerticesBatch(const Geometry& geometry, GrPrimitiveType primitiveType, | 55 GrDrawVerticesBatch(const Geometry& geometry, GrPrimitiveType primitiveType, |
| 56 const SkMatrix& viewMatrix, | 56 const SkMatrix& viewMatrix, |
| 57 const SkPoint* positions, int vertexCount, | 57 const SkPoint* positions, int vertexCount, |
| 58 const uint16_t* indices, int indexCount, | 58 const uint16_t* indices, int indexCount, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 89 bool fHasLocalCoords; | 89 bool fHasLocalCoords; |
| 90 int fVertexCount; | 90 int fVertexCount; |
| 91 int fIndexCount; | 91 int fIndexCount; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 BatchTracker fBatch; | 94 BatchTracker fBatch; |
| 95 SkSTArray<1, Geometry, true> fGeoData; | 95 SkSTArray<1, Geometry, true> fGeoData; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 #endif | 98 #endif |
| OLD | NEW |