| Index: src/gpu/GrStencilAndCoverTextContext.cpp
|
| diff --git a/src/gpu/GrStencilAndCoverTextContext.cpp b/src/gpu/GrStencilAndCoverTextContext.cpp
|
| index 7325f155cf7874c2a39b64e6786b10aa5d1de121..fbd32fc8561bb11b500eec9ca9188e903ecd4848 100644
|
| --- a/src/gpu/GrStencilAndCoverTextContext.cpp
|
| +++ b/src/gpu/GrStencilAndCoverTextContext.cpp
|
| @@ -427,9 +427,6 @@ static const SkScalar* get_xy_scalar_array(const SkPoint* pointArray) {
|
| void GrStencilAndCoverTextContext::flush(GrDrawContext* dc) {
|
| if (fDraw) {
|
| SkASSERT(fDraw->count());
|
| - SkAutoTUnref<GrPathProcessor> pp(GrPathProcessor::Create(fPaint.getColor(),
|
| - fViewMatrix,
|
| - fLocalMatrix));
|
|
|
| // We should only be flushing about once every run. However, if this impacts performance
|
| // we could move the creation of the GrPipelineBuilder earlier.
|
| @@ -447,7 +444,8 @@ void GrStencilAndCoverTextContext::flush(GrDrawContext* dc) {
|
|
|
| *pipelineBuilder.stencil() = kStencilPass;
|
|
|
| - dc->drawPathsFromRange(&pipelineBuilder, pp, fDraw, GrPathRendering::kWinding_FillType);
|
| + dc->drawPathsFromRange(&pipelineBuilder, fViewMatrix, fLocalMatrix, fPaint.getColor(),
|
| + fDraw, GrPathRendering::kWinding_FillType);
|
| fDraw->unref();
|
| fDraw = nullptr;
|
| }
|
|
|