OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2015 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #include "GrStrokeRectBatch.h" |
| 9 #include "GrBatchTest.h" |
| 10 #include "SkRandom.h" |
| 11 |
| 12 #ifdef GR_TEST_UTILS |
| 13 |
| 14 BATCH_TEST_DEFINE(GrStrokeRectBatch) { |
| 15 GrStrokeRectBatch::Geometry geometry; |
| 16 geometry.fViewMatrix = GrTest::TestMatrix(random); |
| 17 geometry.fColor = GrRandomColor(random); |
| 18 geometry.fRect = GrTest::TestRect(random); |
| 19 geometry.fStrokeWidth = random->nextBool() ? 0.0f : 1.0f; |
| 20 |
| 21 return GrStrokeRectBatch::Create(geometry, random->nextBool()); |
| 22 } |
| 23 |
| 24 #endif |
OLD | NEW |