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 #include "GrBWFillRectBatch.h" | 8 #include "GrBWFillRectBatch.h" |
9 | 9 |
10 #include "GrBatch.h" | |
11 #include "GrBatchTarget.h" | 10 #include "GrBatchTarget.h" |
12 #include "GrColor.h" | 11 #include "GrColor.h" |
13 #include "GrDefaultGeoProcFactory.h" | 12 #include "GrDefaultGeoProcFactory.h" |
14 #include "GrPrimitiveProcessor.h" | 13 #include "GrPrimitiveProcessor.h" |
| 14 #include "GrVertexBatch.h" |
15 | 15 |
16 class GrBatchTarget; | 16 class GrBatchTarget; |
17 class SkMatrix; | 17 class SkMatrix; |
18 struct SkRect; | 18 struct SkRect; |
19 | 19 |
20 class BWFillRectBatch : public GrVertexBatch { | 20 class BWFillRectBatch : public GrVertexBatch { |
21 public: | 21 public: |
22 struct Geometry { | 22 struct Geometry { |
23 SkMatrix fViewMatrix; | 23 SkMatrix fViewMatrix; |
24 SkRect fRect; | 24 SkRect fRect; |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 | 259 |
260 geometry.fHasLocalMatrix = random->nextBool(); | 260 geometry.fHasLocalMatrix = random->nextBool(); |
261 if (geometry.fHasLocalMatrix) { | 261 if (geometry.fHasLocalMatrix) { |
262 geometry.fLocalMatrix = GrTest::TestMatrix(random); | 262 geometry.fLocalMatrix = GrTest::TestMatrix(random); |
263 } | 263 } |
264 | 264 |
265 return BWFillRectBatch::Create(geometry); | 265 return BWFillRectBatch::Create(geometry); |
266 } | 266 } |
267 | 267 |
268 #endif | 268 #endif |
OLD | NEW |