• Home
  • Raw
  • Download

Lines Matching full:args

88         const CanDrawPathArgs& args) const {  in onCanDrawPath()
89 const GrStyledShape& shape = *args.fShape; in onCanDrawPath()
90 if (args.fAAType == GrAAType::kCoverage || in onCanDrawPath()
92 args.fViewMatrix->hasPerspective() || in onCanDrawPath()
94 !args.fProxy->canUseStencil(*args.fCaps)) { in onCanDrawPath()
102 if (args.fHasUserStencilSettings) { in onCanDrawPath()
112 bool TessellationPathRenderer::onDrawPath(const DrawPathArgs& args) { in onDrawPath() argument
113 auto sdc = args.fSurfaceDrawContext; in onDrawPath()
116 args.fShape->asPath(&path); in onDrawPath()
118 const SkRect pathDevBounds = args.fViewMatrix->mapRect(args.fShape->bounds()); in onDrawPath()
126 SkRect viewport = SkRect::Make(*args.fClipConservativeBounds); in onDrawPath()
127 if (!args.fShape->style().isSimpleFill()) { in onDrawPath()
129 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onDrawPath()
138 inflationRadius = stroke.getInflationRadius() * args.fViewMatrix->getMaxScale(); in onDrawPath()
142 path = PreChopPathCurves(path, *args.fViewMatrix, viewport); in onDrawPath()
146 if (!args.fShape->style().isSimpleFill()) { in onDrawPath()
148 SkASSERT(args.fUserStencilSettings->isUnused()); in onDrawPath()
149 const SkStrokeRec& stroke = args.fShape->style().strokeRec(); in onDrawPath()
151 auto op = GrOp::Make<StrokeTessellateOp>(args.fContext, args.fAAType, *args.fViewMatrix, in onDrawPath()
152 path, stroke, std::move(args.fPaint)); in onDrawPath()
153 sdc->addDrawOp(args.fClip, std::move(op)); in onDrawPath()
160 args.fSurfaceDrawContext->drawPaint(args.fClip, std::move(args.fPaint), in onDrawPath()
161 *args.fViewMatrix); in onDrawPath()
167 if (args.fShape->knownToBeConvex() && !path.isInverseFillType()) { in onDrawPath()
168 auto op = GrOp::Make<PathTessellateOp>(args.fContext, in onDrawPath()
169 args.fSurfaceDrawContext->arenaAlloc(), in onDrawPath()
170 args.fAAType, in onDrawPath()
171 args.fUserStencilSettings, in onDrawPath()
172 *args.fViewMatrix, in onDrawPath()
174 std::move(args.fPaint), in onDrawPath()
176 sdc->addDrawOp(args.fClip, std::move(op)); in onDrawPath()
180 SkASSERT(args.fUserStencilSettings->isUnused()); // See onGetStencilSupport(). in onDrawPath()
182 ? args.fSurfaceDrawContext->asSurfaceProxy()->backingStoreBoundsRect() in onDrawPath()
184 auto op = make_non_convex_fill_op(args.fContext, in onDrawPath()
185 args.fSurfaceDrawContext->arenaAlloc(), in onDrawPath()
187 args.fAAType, in onDrawPath()
189 *args.fViewMatrix, in onDrawPath()
191 std::move(args.fPaint)); in onDrawPath()
192 sdc->addDrawOp(args.fClip, std::move(op)); in onDrawPath()
196 void TessellationPathRenderer::onStencilPath(const StencilPathArgs& args) { in onStencilPath() argument
197 SkASSERT(args.fShape->style().isSimpleFill()); // See onGetStencilSupport(). in onStencilPath()
198 SkASSERT(!args.fShape->inverseFilled()); // See onGetStencilSupport(). in onStencilPath()
200 auto sdc = args.fSurfaceDrawContext; in onStencilPath()
201 GrAAType aaType = (GrAA::kYes == args.fDoStencilMSAA) ? GrAAType::kMSAA : GrAAType::kNone; in onStencilPath()
204 args.fViewMatrix->mapRect(&pathDevBounds, args.fShape->bounds()); in onStencilPath()
207 args.fShape->asPath(&path); in onStencilPath()
213 SkRect viewport = SkRect::Make(*args.fClipConservativeBounds); in onStencilPath()
214 path = PreChopPathCurves(path, *args.fViewMatrix, viewport); in onStencilPath()
217 if (args.fShape->knownToBeConvex()) { in onStencilPath()
229 auto op = GrOp::Make<PathTessellateOp>(args.fContext, in onStencilPath()
230 args.fSurfaceDrawContext->arenaAlloc(), in onStencilPath()
233 *args.fViewMatrix, in onStencilPath()
237 sdc->addDrawOp(args.fClip, std::move(op)); in onStencilPath()
241 auto op = make_non_convex_fill_op(args.fContext, in onStencilPath()
242 args.fSurfaceDrawContext->arenaAlloc(), in onStencilPath()
246 *args.fViewMatrix, in onStencilPath()
249 sdc->addDrawOp(args.fClip, std::move(op)); in onStencilPath()