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 "GrBatchFlushState.h" | 11 #include "GrBatchFlushState.h" |
12 #include "GrGeometryProcessor.h" | 12 #include "GrGeometryProcessor.h" |
| 13 #include "GrVertexBuffer.h" |
13 | 14 |
14 #include "batches/GrVertexBatch.h" | 15 #include "batches/GrVertexBatch.h" |
15 | 16 |
16 /* | 17 /* |
17 * A simple batch only for testing purposes which actually doesn't batch at all,
but can fit into | 18 * A simple batch only for testing purposes which actually doesn't batch at all,
but can fit into |
18 * the batch pipeline and generate arbitrary geometry | 19 * the batch pipeline and generate arbitrary geometry |
19 */ | 20 */ |
20 class GrTestBatch : public GrVertexBatch { | 21 class GrTestBatch : public GrVertexBatch { |
21 public: | 22 public: |
22 struct Geometry { | 23 struct Geometry { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 bool fCoverageIgnored; | 80 bool fCoverageIgnored; |
80 }; | 81 }; |
81 | 82 |
82 SkAutoTUnref<const GrGeometryProcessor> fGeometryProcessor; | 83 SkAutoTUnref<const GrGeometryProcessor> fGeometryProcessor; |
83 BatchTracker fBatch; | 84 BatchTracker fBatch; |
84 | 85 |
85 typedef GrVertexBatch INHERITED; | 86 typedef GrVertexBatch INHERITED; |
86 }; | 87 }; |
87 | 88 |
88 #endif | 89 #endif |
OLD | NEW |