| 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 GrTestBatch_DEFINED | 8 #ifndef GrTestBatch_DEFINED |
| 9 #define GrTestBatch_DEFINED | 9 #define GrTestBatch_DEFINED |
| 10 | 10 |
| 11 #include "GrBatch.h" | 11 #include "GrBatch.h" |
| 12 #include "GrVertexBuffer.h" |
| 12 | 13 |
| 13 /* | 14 /* |
| 14 * A simple batch only for testing purposes which actually doesn't batch at all,
but can fit into | 15 * A simple batch only for testing purposes which actually doesn't batch at all,
but can fit into |
| 15 * the batch pipeline and generate arbitrary geometry | 16 * the batch pipeline and generate arbitrary geometry |
| 16 */ | 17 */ |
| 17 class GrTestBatch : public GrBatch { | 18 class GrTestBatch : public GrBatch { |
| 18 public: | 19 public: |
| 19 struct Geometry { | 20 struct Geometry { |
| 20 GrColor fColor; | 21 GrColor fColor; |
| 21 }; | 22 }; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 bool fUsesLocalCoords; | 88 bool fUsesLocalCoords; |
| 88 bool fColorIgnored; | 89 bool fColorIgnored; |
| 89 bool fCoverageIgnored; | 90 bool fCoverageIgnored; |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 SkAutoTUnref<const GrGeometryProcessor> fGeometryProcessor; | 93 SkAutoTUnref<const GrGeometryProcessor> fGeometryProcessor; |
| 93 BatchTracker fBatch; | 94 BatchTracker fBatch; |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 #endif | 97 #endif |
| OLD | NEW |