Index: src/gpu/batches/GrMSAAPathRenderer.cpp |
diff --git a/src/gpu/batches/GrMSAAPathRenderer.cpp b/src/gpu/batches/GrMSAAPathRenderer.cpp |
index ec54f320dee333e2a65a3daa1d797262b2fdb8dc..23725446976711c92b800dd17899c4bfab83aae1 100644 |
--- a/src/gpu/batches/GrMSAAPathRenderer.cpp |
+++ b/src/gpu/batches/GrMSAAPathRenderer.cpp |
@@ -13,7 +13,6 @@ |
#include "GrDefaultGeoProcFactory.h" |
#include "GrPathStencilSettings.h" |
#include "GrPathUtils.h" |
-#include "GrPipelineBuilder.h" |
#include "GrMesh.h" |
#include "SkGeometry.h" |
#include "SkTraceEvent.h" |
@@ -657,10 +656,7 @@ bool GrMSAAPathRenderer::internalDrawPath(GrDrawContext* drawContext, |
GrRectBatchFactory::CreateNonAAFill(paint.getColor(), viewM, bounds, nullptr, |
&localMatrix)); |
- GrPipelineBuilder pipelineBuilder(paint, drawContext->mustUseHWAA(paint)); |
- pipelineBuilder.setUserStencil(passes[p]); |
- |
- drawContext->drawBatch(pipelineBuilder, clip, batch); |
+ drawContext->drawBatch(paint, clip, *passes[p], batch); |
} else { |
SkAutoTUnref<MSAAPathBatch> batch(new MSAAPathBatch(paint.getColor(), path, |
viewMatrix, devBounds)); |
@@ -668,13 +664,12 @@ bool GrMSAAPathRenderer::internalDrawPath(GrDrawContext* drawContext, |
return false; |
} |
- GrPipelineBuilder pipelineBuilder(paint, drawContext->mustUseHWAA(paint)); |
- pipelineBuilder.setUserStencil(passes[p]); |
+ SkTCopyOnFirstWrite<GrPaint> newPaint(paint); |
if (passCount > 1) { |
- pipelineBuilder.setDisableColorXPFactory(); |
+ newPaint.writable()->setXPFactory(GrDisableColorXPFactory::Make()); |
} |
- drawContext->drawBatch(pipelineBuilder, clip, batch); |
+ drawContext->drawBatch(*newPaint, clip, *passes[p], batch); |
} |
} |
return true; |