diff options
Diffstat (limited to 'src/gpu/ops/GrAAConvexPathRenderer.cpp')
-rw-r--r-- | src/gpu/ops/GrAAConvexPathRenderer.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gpu/ops/GrAAConvexPathRenderer.cpp b/src/gpu/ops/GrAAConvexPathRenderer.cpp index 3b0fd692f5..5c52fef7d3 100644 --- a/src/gpu/ops/GrAAConvexPathRenderer.cpp +++ b/src/gpu/ops/GrAAConvexPathRenderer.cpp @@ -722,12 +722,12 @@ static sk_sp<GrGeometryProcessor> create_fill_gp(bool tweakAlphaForCoverage, viewMatrix); } -class AAConvexPathOp final : public GrMeshDrawOp { +class AAConvexPathOp final : public GrLegacyMeshDrawOp { public: DEFINE_OP_CLASS_ID - static std::unique_ptr<GrMeshDrawOp> Make(GrColor color, const SkMatrix& viewMatrix, - const SkPath& path) { - return std::unique_ptr<GrMeshDrawOp>(new AAConvexPathOp(color, viewMatrix, path)); + static std::unique_ptr<GrLegacyMeshDrawOp> Make(GrColor color, const SkMatrix& viewMatrix, + const SkPath& path) { + return std::unique_ptr<GrLegacyMeshDrawOp>(new AAConvexPathOp(color, viewMatrix, path)); } const char* name() const override { return "AAConvexPathOp"; } @@ -817,7 +817,7 @@ private: vertexBuffer, indexBuffer, firstVertex, firstIndex, tess.numPts(), tess.numIndices()); - target->draw(gp.get(), mesh); + target->draw(gp.get(), this->pipeline(), mesh); } } @@ -905,7 +905,7 @@ private: const Draw& draw = draws[j]; mesh.initIndexed(kTriangles_GrPrimitiveType, vertexBuffer, indexBuffer, firstVertex, firstIndex, draw.fVertexCnt, draw.fIndexCnt); - target->draw(quadProcessor.get(), mesh); + target->draw(quadProcessor.get(), this->pipeline(), mesh); firstVertex += draw.fVertexCnt; firstIndex += draw.fIndexCnt; } @@ -961,7 +961,7 @@ private: SkSTArray<1, PathData, true> fPaths; - typedef GrMeshDrawOp INHERITED; + typedef GrLegacyMeshDrawOp INHERITED; }; bool GrAAConvexPathRenderer::onDrawPath(const DrawPathArgs& args) { @@ -973,13 +973,13 @@ bool GrAAConvexPathRenderer::onDrawPath(const DrawPathArgs& args) { SkPath path; args.fShape->asPath(&path); - std::unique_ptr<GrMeshDrawOp> op = + std::unique_ptr<GrLegacyMeshDrawOp> op = AAConvexPathOp::Make(args.fPaint.getColor(), *args.fViewMatrix, path); GrPipelineBuilder pipelineBuilder(std::move(args.fPaint), args.fAAType); pipelineBuilder.setUserStencil(args.fUserStencilSettings); - args.fRenderTargetContext->addMeshDrawOp(pipelineBuilder, *args.fClip, std::move(op)); + args.fRenderTargetContext->addLegacyMeshDrawOp(pipelineBuilder, *args.fClip, std::move(op)); return true; |