Lines Matching refs:parent

40 static bool _buildComposition(LottieComposition* comp, LottieLayer* parent);
41 static bool _draw(LottieGroup* parent, LottieShape* shape, RenderContext* ctx);
158 auto parent = layer->parent; in updateTransform() local
160 if (parent) updateTransform(parent, frameNo); in updateTransform()
166 if (parent) { in updateTransform()
167 if (!identity((const Matrix*) &parent->cache.matrix)) { in updateTransform()
168 if (identity((const Matrix*) &matrix)) layer->cache.matrix = parent->cache.matrix; in updateTransform()
169 else layer->cache.matrix = parent->cache.matrix * matrix; in updateTransform()
176 void LottieBuilder::updateTransform(LottieGroup* parent, LottieObject** child, float frameNo, TVG_U… in updateTransform() argument
183 if (parent->mergeable()) { in updateTransform()
205 void LottieBuilder::updateGroup(LottieGroup* parent, LottieObject** child, float frameNo, TVG_UNUSE… in updateGroup() argument
212 group->scene = parent->scene; in updateGroup()
216 if (group->mergeable()) _draw(parent, nullptr, ctx); in updateGroup()
246 static bool _fragmented(LottieGroup* parent, LottieObject** child, Inlist<RenderContext>& contexts,… in _fragmented() argument
251 …contexts.back(new RenderContext(*ctx, static_cast<Shape*>(PP(ctx->propagator)->duplicate(parent->p… in _fragmented()
260 void LottieBuilder::updateSolidStroke(LottieGroup* parent, LottieObject** child, float frameNo, Inl… in updateSolidStroke() argument
262 if (_fragmented(parent, child, contexts, ctx)) return; in updateSolidStroke()
273 void LottieBuilder::updateGradientStroke(LottieGroup* parent, LottieObject** child, float frameNo, … in updateGradientStroke() argument
275 if (_fragmented(parent, child, contexts, ctx)) return; in updateGradientStroke()
285 void LottieBuilder::updateSolidFill(LottieGroup* parent, LottieObject** child, float frameNo, Inlis… in updateSolidFill() argument
287 if (_fragmented(parent, child, contexts, ctx)) return; in updateSolidFill()
300 void LottieBuilder::updateGradientFill(LottieGroup* parent, LottieObject** child, float frameNo, In… in updateGradientFill() argument
302 if (_fragmented(parent, child, contexts, ctx)) return; in updateGradientFill()
315 static bool _draw(LottieGroup* parent, LottieShape* shape, RenderContext* ctx) in _draw() argument
326 parent->scene->push(cast(ctx->merging)); in _draw()
332 static void _repeat(LottieGroup* parent, Shape* path, RenderContext* ctx) in _repeat() argument
372 parent->scene->push(cast(*shape)); in _repeat()
377 parent->scene->push(cast(*shape)); in _repeat()
472 void LottieBuilder::updateRect(LottieGroup* parent, LottieObject** child, float frameNo, TVG_UNUSED… in updateRect() argument
489 _repeat(parent, shape, ctx); in updateRect()
491 _draw(parent, rect, ctx); in updateRect()
539 void LottieBuilder::updateEllipse(LottieGroup* parent, LottieObject** child, float frameNo, TVG_UNU… in updateEllipse() argument
550 _repeat(parent, shape, ctx); in updateEllipse()
552 _draw(parent, ellipse, ctx); in updateEllipse()
558 void LottieBuilder::updatePath(LottieGroup* parent, LottieObject** child, float frameNo, TVG_UNUSED… in updatePath() argument
566 _repeat(parent, shape, ctx); in updatePath()
568 _draw(parent, path, ctx); in updatePath()
576 static void _updateStar(TVG_UNUSED LottieGroup* parent, LottiePolyStar* star, Matrix* transform, co… in _updateStar() argument
704 static void _updatePolygon(LottieGroup* parent, LottiePolyStar* star, Matrix* transform, const Lott… in _updatePolygon() argument
790 void LottieBuilder::updatePolystar(LottieGroup* parent, LottieObject** child, float frameNo, TVG_UN… in updatePolystar() argument
808 …if (star->type == LottiePolyStar::Star) _updateStar(parent, star, identity ? nullptr : &matrix, ct… in updatePolystar()
809 …else _updatePolygon(parent, star, identity ? nullptr : &matrix, ctx->roundness, ctx->offsetPath, … in updatePolystar()
810 _repeat(parent, shape, ctx); in updatePolystar()
812 _draw(parent, star, ctx); in updatePolystar()
813 …if (star->type == LottiePolyStar::Star) _updateStar(parent, star, identity ? nullptr : &matrix, ct… in updatePolystar()
814 …else _updatePolygon(parent, star, identity ? nullptr : &matrix, ctx->roundness, ctx->offsetPath, … in updatePolystar()
820 void LottieBuilder::updateRoundedCorner(TVG_UNUSED LottieGroup* parent, LottieObject** child, float… in updateRoundedCorner() argument
831 void LottieBuilder::updateOffsetPath(TVG_UNUSED LottieGroup* parent, LottieObject** child, float fr… in updateOffsetPath() argument
838 void LottieBuilder::updateRepeater(TVG_UNUSED LottieGroup* parent, LottieObject** child, float fram… in updateRepeater() argument
860 void LottieBuilder::updateTrimpath(TVG_UNUSED LottieGroup* parent, LottieObject** child, float fram… in updateTrimpath() argument
880 void LottieBuilder::updateChildren(LottieGroup* parent, float frameNo, Inlist<RenderContext>& conte… in updateChildren() argument
882 contexts.head->begin = parent->children.end() - 1; in updateChildren()
886 ctx->reqFragment = parent->reqFragment; in updateChildren()
887 for (auto child = ctx->begin; child >= parent->children.data; --child) { in updateChildren()
891 updateGroup(parent, child, frameNo, contexts, ctx); in updateChildren()
895 updateTransform(parent, child, frameNo, contexts, ctx); in updateChildren()
899 updateSolidFill(parent, child, frameNo, contexts, ctx); in updateChildren()
903 updateSolidStroke(parent, child, frameNo, contexts, ctx); in updateChildren()
907 updateGradientFill(parent, child, frameNo, contexts, ctx); in updateChildren()
911 updateGradientStroke(parent, child, frameNo, contexts, ctx); in updateChildren()
915 updateRect(parent, child, frameNo, contexts, ctx); in updateChildren()
919 updateEllipse(parent, child, frameNo, contexts, ctx); in updateChildren()
923 updatePath(parent, child, frameNo, contexts, ctx); in updateChildren()
927 updatePolystar(parent, child, frameNo, contexts, ctx); in updateChildren()
931 updateTrimpath(parent, child, frameNo, contexts, ctx); in updateChildren()
935 updateRepeater(parent, child, frameNo, contexts, ctx); in updateChildren()
939 updateRoundedCorner(parent, child, frameNo, contexts, ctx); in updateChildren()
943 updateOffsetPath(parent, child, frameNo, contexts, ctx); in updateChildren()
1315 static void _buildHierarchy(LottieGroup* parent, LottieLayer* child) in _buildHierarchy() argument
1320 child->parent = child->matteTarget; in _buildHierarchy()
1324 for (auto p = parent->children.begin(); p < parent->children.end(); ++p) { in _buildHierarchy()
1325 auto parent = static_cast<LottieLayer*>(*p); in _buildHierarchy() local
1326 if (child == parent) continue; in _buildHierarchy()
1327 if (child->pidx == parent->idx) { in _buildHierarchy()
1328 child->parent = parent; in _buildHierarchy()
1331 if (parent->matteTarget && parent->matteTarget->idx == child->pidx) { in _buildHierarchy()
1332 child->parent = parent->matteTarget; in _buildHierarchy()
1339 static void _attachFont(LottieComposition* comp, LottieLayer* parent) in _attachFont() argument
1342 for (auto c = parent->children.begin(); c < parent->children.end(); ++c) { in _attachFont()
1359 static bool _buildComposition(LottieComposition* comp, LottieLayer* parent) in _buildComposition() argument
1361 if (parent->children.count == 0) return false; in _buildComposition()
1362 if (parent->buildDone) return true; in _buildComposition()
1363 parent->buildDone = true; in _buildComposition()
1365 for (auto c = parent->children.begin(); c < parent->children.end(); ++c) { in _buildComposition()
1374 if (c > parent->children.begin()) { in _buildComposition()
1378 } else child->matteTarget = parent->layerByIdx(child->mid); in _buildComposition()
1383 _buildHierarchy(parent, child->matteTarget); in _buildComposition()
1387 _buildHierarchy(parent, child); in _buildComposition()