Lines Matching refs:rshape
250 static void _trimPattern(SwDashStroke* dash, const RenderShape* rshape, float length, float trimBeg… in _trimPattern() argument
278 static float _outlineLength(const RenderShape* rshape, uint32_t shiftPts, uint32_t shiftCmds, bool … in _outlineLength() argument
280 const PathCommand* cmds = rshape->path.cmds.data + shiftCmds; in _outlineLength()
281 auto cmdCnt = rshape->path.cmds.count - shiftCmds; in _outlineLength()
282 const Point* pts = rshape->path.pts.data + shiftPts; in _outlineLength()
283 auto ptsCnt = rshape->path.pts.count - shiftPts; in _outlineLength()
329 static SwOutline* _genDashOutline(const RenderShape* rshape, const Matrix& transform, bool trimmed,… in _genDashOutline() argument
331 const PathCommand* cmds = rshape->path.cmds.data; in _genDashOutline()
332 auto cmdCnt = rshape->path.cmds.count; in _genDashOutline()
333 const Point* pts = rshape->path.pts.data; in _genDashOutline()
334 auto ptsCnt = rshape->path.pts.count; in _genDashOutline()
344 dash.cnt = rshape->strokeDash((const float**)&dash.pattern, &offset); in _genDashOutline()
345 auto simultaneous = rshape->stroke->trim.simultaneous; in _genDashOutline()
347 if (trimmed) rshape->stroke->strokeTrim(trimBegin, trimEnd); in _genDashOutline()
379 …if (trimmed) _trimPattern(&dash, rshape, _outlineLength(rshape, 0, 0, simultaneous), trimBegin, tr… in _genDashOutline()
394 …_trimPattern(&dash, rshape, _outlineLength(rshape, pts - startPts, cmds - startCmds, true), trimBe… in _genDashOutline()
443 static bool _genOutline(SwShape* shape, const RenderShape* rshape, const Matrix& transform, SwMpool… in _genOutline() argument
445 const PathCommand* cmds = rshape->path.cmds.data; in _genOutline()
446 auto cmdCnt = rshape->path.cmds.count; in _genOutline()
447 const Point* pts = rshape->path.pts.data; in _genOutline()
448 auto ptsCnt = rshape->path.pts.count; in _genOutline()
487 outline->fillRule = rshape->rule; in _genOutline()
499 bool shapePrepare(SwShape* shape, const RenderShape* rshape, const Matrix& transform, const SwBBox… in shapePrepare() argument
501 if (!_genOutline(shape, rshape, transform, mpool, tid, hasComposite)) return false; in shapePrepare()
523 bool shapeGenRle(SwShape* shape, TVG_UNUSED const RenderShape* rshape, bool antiAlias) in shapeGenRle() argument
581 void shapeResetStroke(SwShape* shape, const RenderShape* rshape, const Matrix& transform) in shapeResetStroke() argument
587 strokeReset(stroke, rshape, transform); in shapeResetStroke()
592 bool shapeGenStrokeRle(SwShape* shape, const RenderShape* rshape, const Matrix& transform, const Sw… in shapeGenStrokeRle() argument
600 auto trimmed = rshape->strokeTrim(); in shapeGenStrokeRle()
601 if (rshape->stroke->dashCnt > 0 || trimmed) { in shapeGenStrokeRle()
602 shapeOutline = _genDashOutline(rshape, transform, trimmed, mpool, tid); in shapeGenStrokeRle()
608 if (!_genOutline(shape, rshape, transform, mpool, tid, false)) return false; in shapeGenStrokeRle()