Index: gm/beziereffects.cpp |
diff --git a/gm/beziereffects.cpp b/gm/beziereffects.cpp |
index ae1c37fdf6031ecd5a987c97c6b0bf2bd2be2e85..0c568d09f5b3ecf6201f2a6580bb689bb29a88c8 100644 |
--- a/gm/beziereffects.cpp |
+++ b/gm/beziereffects.cpp |
@@ -188,14 +188,13 @@ protected: |
boundsPaint.setStyle(SkPaint::kStroke_Style); |
canvas->drawRect(bounds, boundsPaint); |
- GrPipelineBuilder pipelineBuilder; |
- pipelineBuilder.setXPFactory( |
- GrPorterDuffXPFactory::Make(SkXfermode::kSrc_Mode)); |
+ GrPaint grPaint; |
+ grPaint.setXPFactory(GrPorterDuffXPFactory::Make(SkXfermode::kSrc_Mode)); |
SkAutoTUnref<GrDrawBatch> batch( |
new BezierCubicOrConicTestBatch(gp, bounds, color, klmEqs, klmSigns[c])); |
- drawContext->drawContextPriv().testingOnly_drawBatch(pipelineBuilder, batch); |
+ drawContext->drawContextPriv().testingOnly_drawBatch(grPaint, batch); |
} |
++col; |
if (numCols == col) { |
@@ -320,14 +319,13 @@ protected: |
boundsPaint.setStyle(SkPaint::kStroke_Style); |
canvas->drawRect(bounds, boundsPaint); |
- GrPipelineBuilder pipelineBuilder; |
- pipelineBuilder.setXPFactory( |
- GrPorterDuffXPFactory::Make(SkXfermode::kSrc_Mode)); |
+ GrPaint grPaint; |
+ grPaint.setXPFactory(GrPorterDuffXPFactory::Make(SkXfermode::kSrc_Mode)); |
SkAutoTUnref<GrDrawBatch> batch( |
new BezierCubicOrConicTestBatch(gp, bounds, color, klmEqs, 1.f)); |
- drawContext->drawContextPriv().testingOnly_drawBatch(pipelineBuilder, batch); |
+ drawContext->drawContextPriv().testingOnly_drawBatch(grPaint, batch); |
} |
++col; |
if (numCols == col) { |
@@ -527,16 +525,15 @@ protected: |
boundsPaint.setStyle(SkPaint::kStroke_Style); |
canvas->drawRect(bounds, boundsPaint); |
- GrPipelineBuilder pipelineBuilder; |
- pipelineBuilder.setXPFactory( |
- GrPorterDuffXPFactory::Make(SkXfermode::kSrc_Mode)); |
+ GrPaint grPaint; |
+ grPaint.setXPFactory(GrPorterDuffXPFactory::Make(SkXfermode::kSrc_Mode)); |
GrPathUtils::QuadUVMatrix DevToUV(pts); |
SkAutoTUnref<GrDrawBatch> batch( |
new BezierQuadTestBatch(gp, bounds, color, DevToUV)); |
- drawContext->drawContextPriv().testingOnly_drawBatch(pipelineBuilder, batch); |
+ drawContext->drawContextPriv().testingOnly_drawBatch(grPaint, batch); |
} |
++col; |
if (numCols == col) { |