| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 bool usesLocalCoords() const { return fBatch.fUsesLocalCoords; } | 68 bool usesLocalCoords() const { return fBatch.fUsesLocalCoords; } |
| 69 bool colorIgnored() const { return fBatch.fColorIgnored; } | 69 bool colorIgnored() const { return fBatch.fColorIgnored; } |
| 70 const SkMatrix& viewMatrix() const { return fBatch.fViewMatrix; } | 70 const SkMatrix& viewMatrix() const { return fBatch.fViewMatrix; } |
| 71 bool hasColors() const { return fBatch.fHasColors; } | 71 bool hasColors() const { return fBatch.fHasColors; } |
| 72 bool hasIndices() const { return fBatch.fHasIndices; } | 72 bool hasIndices() const { return fBatch.fHasIndices; } |
| 73 bool hasLocalCoords() const { return fBatch.fHasLocalCoords; } | 73 bool hasLocalCoords() const { return fBatch.fHasLocalCoords; } |
| 74 int vertexCount() const { return fBatch.fVertexCount; } | 74 int vertexCount() const { return fBatch.fVertexCount; } |
| 75 int indexCount() const { return fBatch.fIndexCount; } | 75 int indexCount() const { return fBatch.fIndexCount; } |
| 76 bool coverageIgnored() const { return fBatch.fCoverageIgnored; } | 76 bool coverageIgnored() const { return fBatch.fCoverageIgnored; } |
| 77 | 77 |
| 78 bool onCombineIfPossible(GrBatch* t) override; | 78 bool onCombineIfPossible(GrBatch* t, const GrCaps&) override; |
| 79 | 79 |
| 80 struct BatchTracker { | 80 struct BatchTracker { |
| 81 GrPrimitiveType fPrimitiveType; | 81 GrPrimitiveType fPrimitiveType; |
| 82 SkMatrix fViewMatrix; | 82 SkMatrix fViewMatrix; |
| 83 GrColor fColor; | 83 GrColor fColor; |
| 84 bool fUsesLocalCoords; | 84 bool fUsesLocalCoords; |
| 85 bool fColorIgnored; | 85 bool fColorIgnored; |
| 86 bool fCoverageIgnored; | 86 bool fCoverageIgnored; |
| 87 bool fHasColors; | 87 bool fHasColors; |
| 88 bool fHasIndices; | 88 bool fHasIndices; |
| 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 |