| Index: src/gpu/GrTessellatingPathRenderer.cpp
|
| diff --git a/src/gpu/GrTessellatingPathRenderer.cpp b/src/gpu/GrTessellatingPathRenderer.cpp
|
| index 24d4068cdb59d33556e2b3828344ed9ff2325c3d..16bb8cad3f9b187a35b6be3f6d5a435fee953173 100644
|
| --- a/src/gpu/GrTessellatingPathRenderer.cpp
|
| +++ b/src/gpu/GrTessellatingPathRenderer.cpp
|
| @@ -9,6 +9,7 @@
|
|
|
| #include "GrBatch.h"
|
| #include "GrBatchTarget.h"
|
| +#include "GrBatchTest.h"
|
| #include "GrDefaultGeoProcFactory.h"
|
| #include "GrPathUtils.h"
|
| #include "GrVertices.h"
|
| @@ -1514,3 +1515,21 @@ bool GrTessellatingPathRenderer::onDrawPath(GrDrawTarget* target,
|
|
|
| return true;
|
| }
|
| +
|
| +///////////////////////////////////////////////////////////////////////////////////////////////////
|
| +
|
| +#ifdef GR_TEST_UTILS
|
| +
|
| +BATCH_TEST_DEFINE(TesselatingPathRenderer) {
|
| + GrColor color = GrRandomColor(random);
|
| + SkMatrix viewMatrix = GrTest::TestMatrixInvertible(random);
|
| + SkPath path = GrTest::TestPath(random);
|
| + SkRect clipBounds = GrTest::TestRect(random);
|
| + SkMatrix vmi;
|
| + SkDEBUGCODE(bool result = )viewMatrix.invert(&vmi);
|
| + SkASSERT(result);
|
| + vmi.mapRect(&clipBounds);
|
| + return TessellatingPathBatch::Create(color, path, viewMatrix, clipBounds);
|
| +}
|
| +
|
| +#endif
|
|
|