Index: src/gpu/GrAAHairLinePathRenderer.cpp |
diff --git a/src/gpu/GrAAHairLinePathRenderer.cpp b/src/gpu/GrAAHairLinePathRenderer.cpp |
index bbaf8db200621870585ae1d6f880c7039c6289f3..7a2c7a6fa3a16528f1698df260ef8944d0372335 100644 |
--- a/src/gpu/GrAAHairLinePathRenderer.cpp |
+++ b/src/gpu/GrAAHairLinePathRenderer.cpp |
@@ -807,18 +807,18 @@ void AAHairlineBatch::generateGeometry(GrBatchTarget* batchTarget, const GrPipel |
toSrc = &invert; |
} |
- // Setup geometry processors for worst case |
- uint32_t gpFlags = GrDefaultGeoProcFactory::kPosition_GPType | |
- GrDefaultGeoProcFactory::kCoverage_GPType; |
- |
- SkAutoTUnref<const GrGeometryProcessor> lineGP( |
- GrDefaultGeoProcFactory::Create(gpFlags, |
- this->color(), |
- this->usesLocalCoords(), |
- this->coverageIgnored(), |
- *geometryProcessorViewM, |
- *geometryProcessorLocalM, |
- this->coverage())); |
+ SkAutoTUnref<const GrGeometryProcessor> lineGP; |
+ { |
+ using namespace GrDefaultGeoProcFactory; |
+ |
+ Color color(this->color()); |
+ Coverage coverage(Coverage::kAttribute_Type); |
+ LocalCoords localCoords(this->usesLocalCoords() ? LocalCoords::kUsePosition_Type : |
+ LocalCoords::kUnused_Type); |
+ localCoords.fMatrix = geometryProcessorLocalM; |
+ lineGP.reset(GrDefaultGeoProcFactory::Create(color, coverage, localCoords, |
+ *geometryProcessorViewM)); |
+ } |
SkAutoTUnref<const GrGeometryProcessor> quadGP( |
GrQuadEffect::Create(this->color(), |