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 "GrStrokeRectBatch.h" | 8 #include "GrStrokeRectBatch.h" |
9 #include "GrBatchTest.h" | 9 #include "GrBatchTest.h" |
10 #include "SkRandom.h" | 10 #include "SkRandom.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 GrStrokeRectBatch::Geometry geometry; | 132 GrStrokeRectBatch::Geometry geometry; |
133 geometry.fViewMatrix = GrTest::TestMatrix(random); | 133 geometry.fViewMatrix = GrTest::TestMatrix(random); |
134 geometry.fColor = GrRandomColor(random); | 134 geometry.fColor = GrRandomColor(random); |
135 geometry.fRect = GrTest::TestRect(random); | 135 geometry.fRect = GrTest::TestRect(random); |
136 geometry.fStrokeWidth = random->nextBool() ? 0.0f : 1.0f; | 136 geometry.fStrokeWidth = random->nextBool() ? 0.0f : 1.0f; |
137 | 137 |
138 return GrStrokeRectBatch::Create(geometry, random->nextBool()); | 138 return GrStrokeRectBatch::Create(geometry, random->nextBool()); |
139 } | 139 } |
140 | 140 |
141 #endif | 141 #endif |
OLD | NEW |