Index: gm/beziereffects.cpp |
diff --git a/gm/beziereffects.cpp b/gm/beziereffects.cpp |
index e7e63eaded163b2b964504411953accf2e09334d..6f19ac93e7c25d1fd6c0ee2a5f6a4ee1f8ea4772 100644 |
--- a/gm/beziereffects.cpp |
+++ b/gm/beziereffects.cpp |
@@ -164,10 +164,11 @@ |
verts[v].fKLM[2] = eval_line(verts[v].fPosition, klmEqs + 6, 1.f); |
} |
+ ds.setGeometryProcessor(gp); |
ds.setRenderTarget(rt); |
tt.target()->setIndexSourceToBuffer(context->getQuadIndexBuffer()); |
- tt.target()->drawIndexed(&ds, gp, kTriangleFan_GrPrimitiveType, 0, 0,4,6); |
+ tt.target()->drawIndexed(&ds, kTriangleFan_GrPrimitiveType, 0, 0, 4, 6); |
} |
++col; |
if (numCols == col) { |
@@ -319,10 +320,11 @@ |
verts[v].fKLM[2] = eval_line(verts[v].fPosition, klmEqs + 6, 1.f); |
} |
+ ds.setGeometryProcessor(gp); |
ds.setRenderTarget(rt); |
tt.target()->setIndexSourceToBuffer(context->getQuadIndexBuffer()); |
- tt.target()->drawIndexed(&ds, gp, kTriangleFan_GrPrimitiveType, 0, 0,4,6); |
+ tt.target()->drawIndexed(&ds, kTriangleFan_GrPrimitiveType, 0, 0, 4, 6); |
} |
++col; |
if (numCols == col) { |
@@ -503,10 +505,11 @@ |
GrPathUtils::QuadUVMatrix DevToUV(pts); |
DevToUV.apply<4, sizeof(Vertex), sizeof(SkPoint)>(verts); |
+ ds.setGeometryProcessor(gp); |
ds.setRenderTarget(rt); |
tt.target()->setIndexSourceToBuffer(context->getQuadIndexBuffer()); |
- tt.target()->drawIndexed(&ds, gp, kTriangles_GrPrimitiveType, 0, 0, 4, 6); |
+ tt.target()->drawIndexed(&ds, kTriangles_GrPrimitiveType, 0, 0, 4, 6); |
} |
++col; |
if (numCols == col) { |