Index: src/gpu/GrDefaultPathRenderer.cpp |
diff --git a/src/gpu/GrDefaultPathRenderer.cpp b/src/gpu/GrDefaultPathRenderer.cpp |
index 2dcfa57f3d27f323cccbe7061300fb923d03581f..ec6e91c2a8423ff0a784d0fbd8a80ca758ee6060 100644 |
--- a/src/gpu/GrDefaultPathRenderer.cpp |
+++ b/src/gpu/GrDefaultPathRenderer.cpp |
@@ -254,6 +254,8 @@ public: |
SkAutoTUnref<const GrGeometryProcessor> gp( |
GrDefaultGeoProcFactory::Create(GrDefaultGeoProcFactory::kPosition_GPType, |
this->color(), |
+ this->usesLocalCoords(), |
+ this->coverageIgnored(), |
this->viewMatrix(), |
SkMatrix::I(), |
this->coverage())); |
@@ -263,16 +265,6 @@ public: |
batchTarget->initDraw(gp, pipeline); |
- // TODO this is hacky, but the only way we have to initialize the GP is to use the |
- // GrPipelineInfo struct so we can generate the correct shader. Once we have GrBatch |
- // everywhere we can remove this nastiness |
- GrPipelineInfo init; |
- init.fColorIgnored = fBatch.fColorIgnored; |
- init.fOverrideColor = GrColor_ILLEGAL; |
- init.fCoverageIgnored = fBatch.fCoverageIgnored; |
- init.fUsesLocalCoords = this->usesLocalCoords(); |
- gp->initBatchTracker(batchTarget->currentBatchTracker(), init); |
- |
int instanceCount = fGeoData.count(); |
// compute number of vertices |
@@ -518,6 +510,7 @@ private: |
bool usesLocalCoords() const { return fBatch.fUsesLocalCoords; } |
const SkMatrix& viewMatrix() const { return fBatch.fViewMatrix; } |
bool isHairline() const { return fBatch.fIsHairline; } |
+ bool coverageIgnored() const { return fBatch.fCoverageIgnored; } |
struct BatchTracker { |
GrColor fColor; |