Remove drawPathsFromRange from GrDrawContext
Replaces drawPathsFromRange with a more general drawPathBatch method.
While this still isn't perfect, it's a step in the right direction that
removes the need for path range draws to fit in a public API.
BUG=skia:
Review URL: https://codereview.chromium.org/1506823004
diff --git a/src/gpu/GrStencilAndCoverTextContext.cpp b/src/gpu/GrStencilAndCoverTextContext.cpp
index 4ae5ec4..77960db 100644
--- a/src/gpu/GrStencilAndCoverTextContext.cpp
+++ b/src/gpu/GrStencilAndCoverTextContext.cpp
@@ -523,8 +523,12 @@
SkRect bounds = SkRect::MakeIWH(pipelineBuilder->getRenderTarget()->width(),
pipelineBuilder->getRenderTarget()->height());
- dc->drawPathsFromRange(pipelineBuilder, drawMatrix, localMatrix, color, glyphs, fDraw,
- GrPathRendering::kWinding_FillType, bounds);
+ SkAutoTUnref<GrDrawPathBatchBase> batch(
+ GrDrawPathRangeBatch::Create(drawMatrix, localMatrix, color,
+ GrPathRendering::kWinding_FillType, glyphs, fDraw,
+ bounds));
+
+ dc->drawPathBatch(*pipelineBuilder, batch);
}
if (fFallbackTextBlob) {