Index: src/gpu/GrAAHairLinePathRenderer.cpp |
diff --git a/src/gpu/GrAAHairLinePathRenderer.cpp b/src/gpu/GrAAHairLinePathRenderer.cpp |
index dc035fc77266763354497d6dd632cbdbd4f910b7..6dcf063974654b9b73cc27fe5bf110c6a76ccf0e 100644 |
--- a/src/gpu/GrAAHairLinePathRenderer.cpp |
+++ b/src/gpu/GrAAHairLinePathRenderer.cpp |
@@ -774,6 +774,7 @@ private: |
uint8_t coverage() const { return fBatch.fCoverage; } |
bool usesLocalCoords() const { return fBatch.fUsesLocalCoords; } |
const SkMatrix& viewMatrix() const { return fGeoData[0].fViewMatrix; } |
+ bool coverageIgnored() const { return fBatch.fCoverageIgnored; } |
struct BatchTracker { |
GrColor fColor; |
@@ -815,6 +816,8 @@ void AAHairlineBatch::generateGeometry(GrBatchTarget* batchTarget, const GrPipel |
SkAutoTUnref<const GrGeometryProcessor> lineGP( |
GrDefaultGeoProcFactory::Create(gpFlags, |
this->color(), |
+ this->usesLocalCoords(), |
+ this->coverageIgnored(), |
*geometryProcessorViewM, |
*geometryProcessorLocalM, |
this->coverage())); |
@@ -825,6 +828,7 @@ void AAHairlineBatch::generateGeometry(GrBatchTarget* batchTarget, const GrPipel |
kHairlineAA_GrProcessorEdgeType, |
batchTarget->caps(), |
*geometryProcessorLocalM, |
+ this->usesLocalCoords(), |
this->coverage())); |
SkAutoTUnref<const GrGeometryProcessor> conicGP( |
@@ -833,6 +837,7 @@ void AAHairlineBatch::generateGeometry(GrBatchTarget* batchTarget, const GrPipel |
kHairlineAA_GrProcessorEdgeType, |
batchTarget->caps(), |
*geometryProcessorLocalM, |
+ this->usesLocalCoords(), |
this->coverage())); |
// This is hand inlined for maximum performance. |
@@ -859,14 +864,6 @@ void AAHairlineBatch::generateGeometry(GrBatchTarget* batchTarget, const GrPipel |
ref_lines_index_buffer(batchTarget->resourceProvider())); |
batchTarget->initDraw(lineGP, pipeline); |
- // TODO remove this when batch is everywhere |
- GrPipelineInfo init; |
- init.fColorIgnored = fBatch.fColorIgnored; |
- init.fOverrideColor = GrColor_ILLEGAL; |
- init.fCoverageIgnored = fBatch.fCoverageIgnored; |
- init.fUsesLocalCoords = this->usesLocalCoords(); |
- lineGP->initBatchTracker(batchTarget->currentBatchTracker(), init); |
- |
const GrVertexBuffer* vertexBuffer; |
int firstVertex; |
@@ -929,14 +926,6 @@ void AAHairlineBatch::generateGeometry(GrBatchTarget* batchTarget, const GrPipel |
if (quadCount > 0) { |
batchTarget->initDraw(quadGP, pipeline); |
- // TODO remove this when batch is everywhere |
- GrPipelineInfo init; |
- init.fColorIgnored = fBatch.fColorIgnored; |
- init.fOverrideColor = GrColor_ILLEGAL; |
- init.fCoverageIgnored = fBatch.fCoverageIgnored; |
- init.fUsesLocalCoords = this->usesLocalCoords(); |
- quadGP->initBatchTracker(batchTarget->currentBatchTracker(), init); |
- |
{ |
GrVertices verts; |
verts.initInstanced(kTriangles_GrPrimitiveType, vertexBuffer, quadsIndexBuffer, |
@@ -950,14 +939,6 @@ void AAHairlineBatch::generateGeometry(GrBatchTarget* batchTarget, const GrPipel |
if (conicCount > 0) { |
batchTarget->initDraw(conicGP, pipeline); |
- // TODO remove this when batch is everywhere |
- GrPipelineInfo init; |
- init.fColorIgnored = fBatch.fColorIgnored; |
- init.fOverrideColor = GrColor_ILLEGAL; |
- init.fCoverageIgnored = fBatch.fCoverageIgnored; |
- init.fUsesLocalCoords = this->usesLocalCoords(); |
- conicGP->initBatchTracker(batchTarget->currentBatchTracker(), init); |
- |
{ |
GrVertices verts; |
verts.initInstanced(kTriangles_GrPrimitiveType, vertexBuffer, quadsIndexBuffer, |