Index: src/gpu/GrDrawTarget.cpp |
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp |
index 1102b18dc120f04f86948d6870ced3ff45c4dd98..fc5599e712591cdb5a01f5cd20d3927482ea320c 100644 |
--- a/src/gpu/GrDrawTarget.cpp |
+++ b/src/gpu/GrDrawTarget.cpp |
@@ -25,6 +25,7 @@ |
#include "batches/GrDiscardBatch.h" |
#include "batches/GrDrawBatch.h" |
#include "batches/GrRectBatchFactory.h" |
+#include "batches/GrStencilPathBatch.h" |
#include "SkStrokeRec.h" |
@@ -212,7 +213,13 @@ void GrDrawTarget::stencilPath(const GrPipelineBuilder& pipelineBuilder, |
GrStencilAttachment* sb = rt->renderTargetPriv().attachStencilAttachment(); |
this->getPathStencilSettingsForFilltype(fill, sb, &stencilSettings); |
- this->onStencilPath(pipelineBuilder, pathProc, path, scissorState, stencilSettings); |
+ GrBatch* batch = GrStencilPathBatch::Create(pathProc->viewMatrix(), |
+ pipelineBuilder.isHWAntialias(), |
+ stencilSettings, scissorState, |
+ pipelineBuilder.getRenderTarget(), |
+ path); |
+ this->onDrawBatch(batch); |
+ batch->unref(); |
} |
void GrDrawTarget::drawPath(const GrPipelineBuilder& pipelineBuilder, |