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 "GrBatchTarget.h" |
| 12 #include "GrGeometryProcessor.h" |
11 #include "GrVertexBuffer.h" | 13 #include "GrVertexBuffer.h" |
12 | 14 |
13 #include "batches/GrBatch.h" | 15 #include "batches/GrVertexBatch.h" |
14 | 16 |
15 /* | 17 /* |
16 * 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 |
17 * the batch pipeline and generate arbitrary geometry | 19 * the batch pipeline and generate arbitrary geometry |
18 */ | 20 */ |
19 class GrTestBatch : public GrVertexBatch { | 21 class GrTestBatch : public GrVertexBatch { |
20 public: | 22 public: |
21 struct Geometry { | 23 struct Geometry { |
22 GrColor fColor; | 24 GrColor fColor; |
23 }; | 25 }; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 bool fUsesLocalCoords; | 79 bool fUsesLocalCoords; |
78 bool fColorIgnored; | 80 bool fColorIgnored; |
79 bool fCoverageIgnored; | 81 bool fCoverageIgnored; |
80 }; | 82 }; |
81 | 83 |
82 SkAutoTUnref<const GrGeometryProcessor> fGeometryProcessor; | 84 SkAutoTUnref<const GrGeometryProcessor> fGeometryProcessor; |
83 BatchTracker fBatch; | 85 BatchTracker fBatch; |
84 }; | 86 }; |
85 | 87 |
86 #endif | 88 #endif |
OLD | NEW |