Index: src/gpu/GrAADistanceFieldPathRenderer.cpp |
diff --git a/src/gpu/GrAADistanceFieldPathRenderer.cpp b/src/gpu/GrAADistanceFieldPathRenderer.cpp |
index 3c7648aae342ed24368c4665eb6dc470433ae03a..c11c641f57116739f241a4d21b385077393f0453 100755 |
--- a/src/gpu/GrAADistanceFieldPathRenderer.cpp |
+++ b/src/gpu/GrAADistanceFieldPathRenderer.cpp |
@@ -157,16 +157,15 @@ public: |
void initBatchTracker(const GrPipelineInfo& init) override { |
// Handle any color overrides |
- if (init.fColorIgnored) { |
+ if (!init.readsColor()) { |
fBatch.fColor = GrColor_ILLEGAL; |
- } else if (GrColor_ILLEGAL != init.fOverrideColor) { |
- fBatch.fColor = init.fOverrideColor; |
} |
+ init.getOverrideColorIfSet(&fBatch.fColor); |
// setup batch properties |
- fBatch.fColorIgnored = init.fColorIgnored; |
- fBatch.fUsesLocalCoords = init.fUsesLocalCoords; |
- fBatch.fCoverageIgnored = init.fCoverageIgnored; |
+ fBatch.fColorIgnored = !init.readsColor(); |
+ fBatch.fUsesLocalCoords = init.readsLocalCoords(); |
+ fBatch.fCoverageIgnored = !init.readsCoverage(); |
} |
struct FlushInfo { |