Index: src/gpu/GrAAHairLinePathRenderer.cpp |
diff --git a/src/gpu/GrAAHairLinePathRenderer.cpp b/src/gpu/GrAAHairLinePathRenderer.cpp |
index da60a6cabd4a8e8f068c2560ff14e4ced5044146..14770b85317e48b71f2c7c56c162cf656f5aa8b9 100644 |
--- a/src/gpu/GrAAHairLinePathRenderer.cpp |
+++ b/src/gpu/GrAAHairLinePathRenderer.cpp |
@@ -700,17 +700,16 @@ public: |
void initBatchTracker(const GrPipelineInfo& init) override { |
// Handle any color overrides |
- if (init.fColorIgnored) { |
+ if (!init.readsColor()) { |
fGeoData[0].fColor = GrColor_ILLEGAL; |
- } else if (GrColor_ILLEGAL != init.fOverrideColor) { |
- fGeoData[0].fColor = init.fOverrideColor; |
} |
+ init.getOverrideColorIfSet(&fGeoData[0].fColor); |
// setup batch properties |
- fBatch.fColorIgnored = init.fColorIgnored; |
+ fBatch.fColorIgnored = !init.readsColor(); |
fBatch.fColor = fGeoData[0].fColor; |
- fBatch.fUsesLocalCoords = init.fUsesLocalCoords; |
- fBatch.fCoverageIgnored = init.fCoverageIgnored; |
+ fBatch.fUsesLocalCoords = init.readsLocalCoords(); |
+ fBatch.fCoverageIgnored = !init.readsCoverage(); |
fBatch.fCoverage = fGeoData[0].fCoverage; |
} |