Index: src/gpu/GrStrokeRectBatch.cpp |
diff --git a/src/gpu/GrStrokeRectBatch.cpp b/src/gpu/GrStrokeRectBatch.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c33adc055b594eda8af7f473b728630366c8a6e1 |
--- /dev/null |
+++ b/src/gpu/GrStrokeRectBatch.cpp |
@@ -0,0 +1,24 @@ |
+/* |
+ * Copyright 2015 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+#include "GrStrokeRectBatch.h" |
+#include "GrBatchTest.h" |
+#include "SkRandom.h" |
+ |
+#ifdef GR_TEST_UTILS |
+ |
+BATCH_TEST_DEFINE(GrStrokeRectBatch) { |
+ GrStrokeRectBatch::Geometry geometry; |
+ geometry.fViewMatrix = GrTest::TestMatrix(random); |
+ geometry.fColor = GrRandomColor(random); |
+ geometry.fRect = GrTest::TestRect(random); |
+ geometry.fStrokeWidth = random->nextBool() ? 0.0f : 1.0f; |
+ |
+ return GrStrokeRectBatch::Create(geometry, random->nextBool()); |
+} |
+ |
+#endif |