Home
last modified time | relevance | path

Searched refs:rshape (Results 1 – 6 of 6) sorted by relevance

/lvgl-latest/src/libs/thorvg/
DtvgSwShape.cpp250 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()
[all …]
DtvgSwRenderer.cpp82 const RenderShape* rshape = nullptr; member
91 …return strokeWidth < 2.0f || rshape->stroke->dashCnt > 0 || rshape->stroke->strokeFirst || rshape-… in antialiasing()
96 if (!rshape->stroke) return 0.0f; in validStrokeWidth()
98 auto width = rshape->stroke->width; in validStrokeWidth()
101 … if (!rshape->stroke->fill && (MULTIPLY(rshape->stroke->color[3], opacity) == 0)) return 0.0f; in validStrokeWidth()
102 if (tvg::zero(rshape->stroke->trim.begin - rshape->stroke->trim.end)) return 0.0f; in validStrokeWidth()
135 rshape->fillColor(nullptr, nullptr, nullptr, &alpha); in run()
137 visibleFill = (alpha > 0 || rshape->fill); in run()
140 …if (!shapePrepare(&shape, rshape, transform, bbox, renderRegion, mpool, tid, clips.count > 0 ? tru… in run()
149 if (!shapeGenRle(&shape, rshape, antialiasing(strokeWidth))) goto err; in run()
[all …]
DtvgSwRenderer.h42 …RenderData prepare(const RenderShape& rshape, RenderData data, const Matrix& transform, Array<Rend…
DtvgSwStroke.cpp821 void strokeReset(SwStroke* stroke, const RenderShape* rshape, const Matrix& transform) in strokeReset() argument
825 stroke->width = HALF_STROKE(rshape->strokeWidth()); in strokeReset()
826 stroke->cap = rshape->strokeCap(); in strokeReset()
827 stroke->miterlimit = static_cast<SwFixed>(rshape->strokeMiterlimit() * 65536.0f); in strokeReset()
830 stroke->joinSaved = stroke->join = rshape->strokeJoin(); in strokeReset()
DtvgSwCommon.h504 bool shapePrepare(SwShape* shape, const RenderShape* rshape, const Matrix& transform, const SwBBox&…
506 bool shapeGenRle(SwShape* shape, const RenderShape* rshape, bool antiAlias);
508 void shapeResetStroke(SwShape* shape, const RenderShape* rshape, const Matrix& transform);
509 bool shapeGenStrokeRle(SwShape* shape, const RenderShape* rshape, const Matrix& transform, const Sw…
DtvgRender.h315 …virtual RenderData prepare(const RenderShape& rshape, RenderData data, const Matrix& transform, Ar…