Index: src/gpu/GrDrawContext.cpp |
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp |
index 6b3346ca603f8fb78c1fce5624a0c05d557aa912..d057984f9c67b61e399cfc967437091aad4230f7 100644 |
--- a/src/gpu/GrDrawContext.cpp |
+++ b/src/gpu/GrDrawContext.cpp |
@@ -558,12 +558,10 @@ void GrDrawContext::drawVertices(const GrClip& clip, |
bounds.outset(0.5f, 0.5f); |
} |
- GrDrawVerticesBatch::Geometry geometry; |
- geometry.fColor = paint.getColor(); |
- SkAutoTUnref<GrDrawBatch> batch(GrDrawVerticesBatch::Create(geometry, primitiveType, viewMatrix, |
- positions, vertexCount, indices, |
- indexCount, colors, texCoords, |
- bounds)); |
+ SkAutoTUnref<GrDrawBatch> batch(new GrDrawVerticesBatch(paint.getColor(), |
+ primitiveType, viewMatrix, positions, |
+ vertexCount, indices, indexCount, |
+ colors, texCoords, bounds)); |
GrPipelineBuilder pipelineBuilder(paint, this->mustUseHWAA(paint)); |
this->getDrawTarget()->drawBatch(pipelineBuilder, this, clip, batch); |