Index: src/gpu/GrDistanceFieldTextContext.cpp |
diff --git a/src/gpu/GrDistanceFieldTextContext.cpp b/src/gpu/GrDistanceFieldTextContext.cpp |
index d35ba233e720c12f87f228c7c9f4545aed27aee7..ea72c290dd5418a016cb39b27b13c57e71d4dea6 100755 |
--- a/src/gpu/GrDistanceFieldTextContext.cpp |
+++ b/src/gpu/GrDistanceFieldTextContext.cpp |
@@ -637,9 +637,6 @@ void GrDistanceFieldTextContext::flush() { |
} |
this->setupCoverageEffect(filteredColor); |
- // Effects could be stored with one of the cache objects (atlas?) |
- drawState.setGeometryProcessor(fCachedGeometryProcessor.get()); |
- |
// Set draw state |
if (fUseLCDText) { |
// TODO: move supportsRGBCoverage check to setupCoverageEffect and only add LCD |
@@ -648,17 +645,18 @@ void GrDistanceFieldTextContext::flush() { |
if (!drawState.getXPFactory()->supportsRGBCoverage(0, kRGBA_GrColorComponentFlags)) { |
SkDebugf("LCD Text will not draw correctly.\n"); |
} |
- SkASSERT(!drawState.hasColorVertexAttribute()); |
+ SkASSERT(!fCachedGeometryProcessor->hasVertexColor()); |
} else { |
if (0xFF == GrColorUnpackA(fPaint.getColor())) { |
drawState.setHint(GrDrawState::kVertexColorsAreOpaque_Hint, true); |
} |
// We're using per-vertex color. |
- SkASSERT(drawState.hasColorVertexAttribute()); |
+ SkASSERT(fCachedGeometryProcessor->hasVertexColor()); |
} |
int nGlyphs = fCurrVertex / kVerticesPerGlyph; |
fDrawTarget->setIndexSourceToBuffer(fContext->getQuadIndexBuffer()); |
fDrawTarget->drawIndexedInstances(&drawState, |
+ fCachedGeometryProcessor.get(), |
kTriangles_GrPrimitiveType, |
nGlyphs, |
kVerticesPerGlyph, |