Index: gm/convexpolyeffect.cpp |
diff --git a/gm/convexpolyeffect.cpp b/gm/convexpolyeffect.cpp |
index 1ec7853dad817c6620a079cc93da893b939dfacf..c92fd933909b21583c4459c242260f280341ee04 100644 |
--- a/gm/convexpolyeffect.cpp |
+++ b/gm/convexpolyeffect.cpp |
@@ -132,12 +132,12 @@ protected: |
continue; |
} |
- GrDrawState ds; |
+ GrPipelineBuilder pipelineBuilder; |
SkAutoTUnref<const GrGeometryProcessor> gp( |
GrDefaultGeoProcFactory::Create(GrDefaultGeoProcFactory::kPosition_GPType, |
0xff000000)); |
- ds.addCoverageProcessor(fp); |
- ds.setRenderTarget(rt); |
+ pipelineBuilder.addCoverageProcessor(fp); |
+ pipelineBuilder.setRenderTarget(rt); |
GrDrawTarget::AutoReleaseGeometry geo(tt.target(), 4, gp->getVertexStride(), 0); |
SkASSERT(gp->getVertexStride() == sizeof(SkPoint)); |
@@ -150,7 +150,8 @@ protected: |
bounds.toQuad(verts); |
tt.target()->setIndexSourceToBuffer(context->getQuadIndexBuffer()); |
- tt.target()->drawIndexed(&ds, gp, kTriangleFan_GrPrimitiveType, 0, 0, 4, 6); |
+ tt.target()->drawIndexed(&pipelineBuilder, gp, kTriangleFan_GrPrimitiveType, |
+ 0, 0, 4, 6); |
x += SkScalarCeilToScalar(path->getBounds().width() + 10.f); |
} |
@@ -189,12 +190,12 @@ protected: |
continue; |
} |
- GrDrawState ds; |
+ GrPipelineBuilder pipelineBuilder; |
SkAutoTUnref<const GrGeometryProcessor> gp( |
GrDefaultGeoProcFactory::Create(GrDefaultGeoProcFactory::kPosition_GPType, |
0xff000000)); |
- ds.addCoverageProcessor(fp); |
- ds.setRenderTarget(rt); |
+ pipelineBuilder.addCoverageProcessor(fp); |
+ pipelineBuilder.setRenderTarget(rt); |
GrDrawTarget::AutoReleaseGeometry geo(tt.target(), 4, gp->getVertexStride(), 0); |
SkASSERT(gp->getVertexStride() == sizeof(SkPoint)); |
@@ -205,7 +206,8 @@ protected: |
bounds.toQuad(verts); |
tt.target()->setIndexSourceToBuffer(context->getQuadIndexBuffer()); |
- tt.target()->drawIndexed(&ds, gp, kTriangleFan_GrPrimitiveType, 0, 0, 4, 6); |
+ tt.target()->drawIndexed(&pipelineBuilder, gp, kTriangleFan_GrPrimitiveType, |
+ 0, 0, 4, 6); |
x += SkScalarCeilToScalar(rect.width() + 10.f); |
} |