Index: src/gpu/GrAAConvexPathRenderer.cpp |
diff --git a/src/gpu/GrAAConvexPathRenderer.cpp b/src/gpu/GrAAConvexPathRenderer.cpp |
index d536823a5a857971e72dcabeb2d2fb56ae521a11..fea943b436db7324f6553dc961069eeec38122f8 100644 |
--- a/src/gpu/GrAAConvexPathRenderer.cpp |
+++ b/src/gpu/GrAAConvexPathRenderer.cpp |
@@ -11,6 +11,7 @@ |
#include "GrAAConvexTessellator.h" |
#include "GrBatch.h" |
#include "GrBatchTarget.h" |
+#include "GrBatchTest.h" |
#include "GrContext.h" |
#include "GrDefaultGeoProcFactory.h" |
#include "GrDrawTargetCaps.h" |
@@ -1036,3 +1037,18 @@ bool GrAAConvexPathRenderer::onDrawPath(GrDrawTarget* target, |
return true; |
} |
+ |
+/////////////////////////////////////////////////////////////////////////////////////////////////// |
+ |
+#ifdef GR_TEST_UTILS |
+ |
+BATCH_TEST_DEFINE(AAConvexPath) { |
+ AAConvexPathBatch::Geometry geometry; |
+ geometry.fColor = GrRandomColor(random); |
+ geometry.fViewMatrix = GrTest::TestMatrix(random); |
+ geometry.fPath = GrTest::TestPathConvex(random); |
+ |
+ return AAConvexPathBatch::Create(geometry); |
+} |
+ |
+#endif |