Home
last modified time | relevance | path

Searched refs:abuilder (Results 1 – 25 of 66) sorted by relevance

123

/external/skia/modules/skottie/src/layers/shapelayer/
DFillStroke.cpp26 const AnimationBuilder& abuilder, in FillStrokeAdapter() argument
35 this->bind(abuilder, jpaint["o"], fOpacity); in FillStrokeAdapter()
40 this->bind(abuilder, jpaint["w"], fStrokeWidth); in FillStrokeAdapter()
65 this->bind(abuilder, jpaint["c"], fColor); in FillStrokeAdapter()
94 const AnimationBuilder& abuilder, in DashAdapter() argument
109 this->bind(abuilder, (*jint)["v"], target); in DashAdapter()
129 const AnimationBuilder* abuilder, in AttachFill() argument
132 return abuilder->attachDiscardableAdapter<FillStrokeAdapter> in AttachFill()
134 *abuilder, in AttachFill()
141 const AnimationBuilder* abuilder, in AttachStroke() argument
[all …]
DPolystar.cpp30 const AnimationBuilder* abuilder, Type t) in PolystarGeometryAdapter() argument
32 this->bind(*abuilder, jstar["pt"], fPointCount ); in PolystarGeometryAdapter()
33 this->bind(*abuilder, jstar["p" ], fPosition ); in PolystarGeometryAdapter()
34 this->bind(*abuilder, jstar["r" ], fRotation ); in PolystarGeometryAdapter()
35 this->bind(*abuilder, jstar["ir"], fInnerRadius ); in PolystarGeometryAdapter()
36 this->bind(*abuilder, jstar["or"], fOuterRadius ); in PolystarGeometryAdapter()
37 this->bind(*abuilder, jstar["is"], fInnerRoundness); in PolystarGeometryAdapter()
38 this->bind(*abuilder, jstar["os"], fOuterRoundness); in PolystarGeometryAdapter()
86 const AnimationBuilder* abuilder) { in AttachPolystarGeometry() argument
94 abuilder->log(Logger::Level::kError, &jstar, "Unknown polystar type."); in AttachPolystarGeometry()
[all …]
DRectangle.cpp25 const AnimationBuilder* abuilder) { in RectangleGeometryAdapter() argument
30 this->bind(*abuilder, jrect["s"], fSize ); in RectangleGeometryAdapter()
31 this->bind(*abuilder, jrect["p"], fPosition ); in RectangleGeometryAdapter()
32 this->bind(*abuilder, jrect["r"], fRoundness); in RectangleGeometryAdapter()
52 const AnimationBuilder* abuilder) { in AttachRRectGeometry() argument
53 return abuilder->attachDiscardableAdapter<RectangleGeometryAdapter>(jrect, abuilder); in AttachRRectGeometry()
DRepeater.cpp118 const AnimationBuilder& abuilder, in RepeaterAdapter() argument
125 this->bind(abuilder, jrepeater["c"], fCount); in RepeaterAdapter()
126 this->bind(abuilder, jrepeater["o"], fOffset); in RepeaterAdapter()
128 this->bind(abuilder, jtransform["a" ], fAnchorPoint); in RepeaterAdapter()
129 this->bind(abuilder, jtransform["p" ], fPosition); in RepeaterAdapter()
130 this->bind(abuilder, jtransform["s" ], fScale); in RepeaterAdapter()
131 this->bind(abuilder, jtransform["r" ], fRotation); in RepeaterAdapter()
132 this->bind(abuilder, jtransform["so"], fStartOpacity); in RepeaterAdapter()
133 this->bind(abuilder, jtransform["eo"], fEndOpacity); in RepeaterAdapter()
168 const AnimationBuilder* abuilder, in AttachRepeaterDrawEffect() argument
[all …]
DEllipse.cpp25 const AnimationBuilder* abuilder) { in EllipseGeometryAdapter() argument
30 this->bind(*abuilder, jellipse["s"], fSize); in EllipseGeometryAdapter()
31 this->bind(*abuilder, jellipse["p"], fPosition); in EllipseGeometryAdapter()
50 const AnimationBuilder* abuilder) { in AttachEllipseGeometry() argument
51 return abuilder->attachDiscardableAdapter<EllipseGeometryAdapter>(jellipse, abuilder); in AttachEllipseGeometry()
DGradient.cpp25 const AnimationBuilder& abuilder) { in Make() argument
43 jgrad, *jstops, abuilder)); in Make()
56 const AnimationBuilder& abuilder) in GradientAdapter() argument
60 this->bind(abuilder, jgrad["s"], fStartPoint); in GradientAdapter()
61 this->bind(abuilder, jgrad["e"], fEndPoint ); in GradientAdapter()
62 this->bind(abuilder, jstops["k"], fStops ); in GradientAdapter()
208 const AnimationBuilder* abuilder) { in AttachGradientFill() argument
209 auto adapter = GradientAdapter::Make(jgrad, *abuilder); in AttachGradientFill()
212 ? AttachFill(jgrad, abuilder, sksg::ShaderPaint::Make(adapter->node()), adapter) in AttachGradientFill()
217 const AnimationBuilder* abuilder) { in AttachGradientStroke() argument
[all …]
DOffsetPaths.cpp24 const AnimationBuilder& abuilder, in OffsetPathsAdapter() argument
36 this->bind(abuilder, joffset["a" ], fAmount); in OffsetPathsAdapter()
37 this->bind(abuilder, joffset["ml"], fMiterLimit); in OffsetPathsAdapter()
55 const skjson::ObjectValue& jround, const AnimationBuilder* abuilder, in AttachOffsetGeometryEffect() argument
61 offsetted.push_back(abuilder->attachDiscardableAdapter<OffsetPathsAdapter> in AttachOffsetGeometryEffect()
62 (jround, *abuilder, std::move(g))); in AttachOffsetGeometryEffect()
DTrimPaths.cpp26 const AnimationBuilder& abuilder, in TrimEffectAdapter() argument
29 this->bind(abuilder, jtrim["s"], &fStart); in TrimEffectAdapter()
30 this->bind(abuilder, jtrim["e"], &fEnd); in TrimEffectAdapter()
31 this->bind(abuilder, jtrim["o"], &fOffset); in TrimEffectAdapter()
75 const AnimationBuilder* abuilder, in AttachTrimGeometryEffect() argument
98 abuilder->attachDiscardableAdapter<TrimEffectAdapter>(jtrim, *abuilder, i)); in AttachTrimGeometryEffect()
DRoundCorners.cpp24 const AnimationBuilder& abuilder, in RoundCornersAdapter() argument
27 this->bind(abuilder, jround["r"], fRadius); in RoundCornersAdapter()
43 const skjson::ObjectValue& jround, const AnimationBuilder* abuilder, in AttachRoundGeometryEffect() argument
50 abuilder->attachDiscardableAdapter<RoundCornersAdapter> in AttachRoundGeometryEffect()
51 (jround, *abuilder, std::move(g))); in AttachRoundGeometryEffect()
/external/skia/modules/skottie/src/text/
DTextAnimator.cpp62 const AnimationBuilder* abuilder, in Make() argument
80 if (auto sel = RangeSelector::Make(*jselector, abuilder, acontainer)) { in Make()
85 if (auto sel = RangeSelector::Make((*janimator)["s"], abuilder, acontainer)) { in Make()
92 new TextAnimator(std::move(selectors), *jprops, abuilder, acontainer)); in Make()
157 const AnimationBuilder* abuilder, in TextAnimator() argument
162 acontainer->bind(*abuilder, jprops["p" ], fTextProps.position); in TextAnimator()
163 acontainer->bind(*abuilder, jprops["o" ], fTextProps.opacity ); in TextAnimator()
164 acontainer->bind(*abuilder, jprops["t" ], fTextProps.tracking); in TextAnimator()
165 acontainer->bind(*abuilder, jprops["ls"], fTextProps.line_spacing); in TextAnimator()
168 fRequiresAnchorPoint |= acontainer->bind(*abuilder, jprops["s"], fTextProps.scale); in TextAnimator()
[all …]
DRangeSelector.cpp27 const AnimationBuilder* abuilder, const char* warn_name) { in ParseEnum() argument
38 abuilder->log(Logger::Level::kWarning, nullptr, in ParseEnum()
234 const AnimationBuilder* abuilder, in Make() argument
250 abuilder->log(Logger::Level::kWarning, nullptr, in Make()
282 new RangeSelector(ParseEnum<Units> (gUnitMap , (*jrange)["r" ], abuilder, "units" ), in Make()
283 ParseEnum<Domain>(gDomainMap, (*jrange)["b" ], abuilder, "domain"), in Make()
284 ParseEnum<Mode> (gModeMap , (*jrange)["m" ], abuilder, "mode" ), in Make()
285 ParseEnum<Shape> (gShapeMap , (*jrange)["sh"], abuilder, "shape" ))); in Make()
287 acontainer->bind(*abuilder, (*jrange)["s" ], &selector->fStart ); in Make()
288 acontainer->bind(*abuilder, (*jrange)["e" ], &selector->fEnd ); in Make()
[all …]
/external/skqp/modules/skottie/src/
DSkottieShapeLayer.cpp36 const AnimationBuilder* abuilder, in AttachPathGeometry() argument
38 return abuilder->attachPath(jpath["ks"], ascope); in AttachPathGeometry()
42 const AnimationBuilder* abuilder, in AttachRRectGeometry() argument
51 auto p_attached = abuilder->bindProperty<VectorValue>(jrect["p"], ascope, in AttachRRectGeometry()
55 auto s_attached = abuilder->bindProperty<VectorValue>(jrect["s"], ascope, in AttachRRectGeometry()
59 auto r_attached = abuilder->bindProperty<ScalarValue>(jrect["r"], ascope, in AttachRRectGeometry()
72 const AnimationBuilder* abuilder, in AttachEllipseGeometry() argument
81 auto p_attached = abuilder->bindProperty<VectorValue>(jellipse["p"], ascope, in AttachEllipseGeometry()
85 auto s_attached = abuilder->bindProperty<VectorValue>(jellipse["s"], ascope, in AttachEllipseGeometry()
100 const AnimationBuilder* abuilder, in AttachPolystarGeometry() argument
[all …]
DSkottieAnimator.cpp63 virtual int parseValue(const skjson::Value&, const AnimationBuilder* abuilder) = 0;
65 void parseKeyFrames(const skjson::ArrayValue& jframes, const AnimationBuilder* abuilder) { in parseKeyFrames() argument
75 abuilder->log(Logger::Level::kWarning, nullptr, in parseKeyFrames()
86 const auto v0_idx = this->parseValue((*jframe)["s"], abuilder); in parseKeyFrames()
91 const auto v1_idx = this->parseValue((*jframe)["e"], abuilder); in parseKeyFrames()
181 const AnimationBuilder* abuilder, in Make() argument
186 new KeyframeAnimator(*jv, abuilder, std::move(apply))); in Make()
200 const AnimationBuilder* abuilder, in KeyframeAnimator() argument
210 this->parseKeyFrames(jframes, abuilder); in KeyframeAnimator()
215 int parseValue(const skjson::Value& jv, const AnimationBuilder* abuilder) override { in parseValue() argument
[all …]
/external/skia/modules/skottie/src/
DLayer.cpp61 MaskAdapter(const skjson::ObjectValue& jmask, const AnimationBuilder& abuilder, SkBlendMode bm) in MaskAdapter() argument
71 this->bind(abuilder, jmask["o"], fOpacity); in MaskAdapter()
73 if (this->bind(abuilder, jmask["f"], fFeather)) { in MaskAdapter()
133 const AnimationBuilder* abuilder, in AttachMask() argument
151 abuilder->log(Logger::Level::kError, &(*m)["mode"], "Invalid mask mode."); in AttachMask()
163 abuilder->log(Logger::Level::kWarning, nullptr, "Unsupported mask mode: '%c'.", mode); in AttachMask()
167 auto mask_path = abuilder->attachPath((*m)["pt"]); in AttachMask()
169 abuilder->log(Logger::Level::kError, m, "Could not parse mask path."); in AttachMask()
189 auto mask_adapter = sk_make_sp<MaskAdapter>(*m, *abuilder, mask_blend_mode); in AttachMask()
190 abuilder->attachDiscardableAdapter(mask_adapter); in AttachMask()
[all …]
DComposition.cpp22 AnimationBuilder::ScopedAssetRef::ScopedAssetRef(const AnimationBuilder* abuilder, in ScopedAssetRef() argument
26 abuilder->log(Logger::Level::kError, nullptr, "Layer missing refId."); in ScopedAssetRef()
30 const auto* asset_info = abuilder->fAssets.find(refId); in ScopedAssetRef()
32 abuilder->log(Logger::Level::kError, nullptr, "Asset not found: '%s'.", refId.c_str()); in ScopedAssetRef()
37 abuilder->log(Logger::Level::kError, nullptr, in ScopedAssetRef()
47 CompositionBuilder::CompositionBuilder(const AnimationBuilder& abuilder, in CompositionBuilder() argument
81 abuilder.log(Logger::Level::kWarning, jlayer, in CompositionBuilder()
92 fCameraTransform = fLayerBuilders[camera_builder_index].buildTransform(abuilder, this); in CompositionBuilder()
113 sk_sp<sksg::RenderNode> CompositionBuilder::build(const AnimationBuilder& abuilder) { in build() argument
116 lbuilder.buildTransform(abuilder, this); in build()
[all …]
DTransform.cpp17 TransformAdapter2D::TransformAdapter2D(const AnimationBuilder& abuilder, in TransformAdapter2D() argument
27 this->bind(abuilder, janchor_point, fAnchorPoint); in TransformAdapter2D()
28 this->bind(abuilder, jscale , fScale); in TransformAdapter2D()
29 this->bind(abuilder, jrotation , fRotation); in TransformAdapter2D()
30 this->bind(abuilder, jskew , fSkew); in TransformAdapter2D()
31 this->bind(abuilder, jskew_axis , fSkewAxis); in TransformAdapter2D()
33 this->bindAutoOrientable(abuilder, jposition, &fPosition, auto_orient ? &fOrientation in TransformAdapter2D()
143 const AnimationBuilder& abuilder) in TransformAdapter3D() argument
146 this->bind(abuilder, jtransform["a"], fAnchorPoint); in TransformAdapter3D()
147 this->bind(abuilder, jtransform["p"], fPosition); in TransformAdapter3D()
[all …]
/external/skia/modules/skottie/src/effects/
DShadowStyles.cpp32 const AnimationBuilder& abuilder, in ShadowAdapter() argument
35 this->bind(abuilder, jstyle["c"], fColor); in ShadowAdapter()
36 this->bind(abuilder, jstyle["o"], fOpacity); in ShadowAdapter()
37 this->bind(abuilder, jstyle["a"], fAngle); in ShadowAdapter()
38 this->bind(abuilder, jstyle["s"], fSize); in ShadowAdapter()
39 this->bind(abuilder, jstyle["d"], fDistance); in ShadowAdapter()
117 const AnimationBuilder& abuilder, in make_shadow_effect() argument
120 auto filter_node = abuilder.attachDiscardableAdapter<ShadowAdapter>(jstyle, abuilder, type); in make_shadow_effect()
DGlowStyles.cpp32 GlowAdapter(const skjson::ObjectValue& jstyle, const AnimationBuilder& abuilder, Type type) in GlowAdapter() argument
34 this->bind(abuilder, jstyle["c" ], fColor); in GlowAdapter()
35 this->bind(abuilder, jstyle["o" ], fOpacity); in GlowAdapter()
36 this->bind(abuilder, jstyle["s" ], fSize); in GlowAdapter()
37 this->bind(abuilder, jstyle["sr"], fInnerSource); in GlowAdapter()
38 this->bind(abuilder, jstyle["ch"], fChoke); in GlowAdapter()
143 const AnimationBuilder& abuilder, in make_glow_effect() argument
146 auto filter_node = abuilder.attachDiscardableAdapter<GlowAdapter>(jstyle, abuilder, type); in make_glow_effect()
DFillEffect.cpp26 const AnimationBuilder& abuilder) { in Make() argument
27 return sk_sp<FillAdapter>(new FillAdapter(jprops, std::move(layer), abuilder)); in Make()
35 const AnimationBuilder& abuilder) in FillAdapter() argument
50 EffectBinder(jprops, abuilder, this) in FillAdapter()
54 abuilder.dispatchColorProperty(fColorNode); in FillAdapter()
DTransformEffect.cpp23 TransformEffectAdapter(const AnimationBuilder& abuilder, in TransformEffectAdapter() argument
32 this->bind(abuilder, jopacity , fOpacity ); in TransformEffectAdapter()
33 this->bind(abuilder, jscale_uniform, fUniformScale); in TransformEffectAdapter()
34 this->bind(abuilder, jscale_width , fScaleWidth ); in TransformEffectAdapter()
35 this->bind(abuilder, jscale_height , fScaleHeight ); in TransformEffectAdapter()
DTintEffect.cpp24 const AnimationBuilder& abuilder) { in Make() argument
25 return sk_sp<TintAdapter>(new TintAdapter(jprops, std::move(layer), abuilder)); in Make()
33 const AnimationBuilder& abuilder) in TintAdapter() argument
47 EffectBinder(jprops, abuilder, this) in TintAdapter()
/external/skia/modules/skottie/src/animator/
DTextKeyframeAnimator.cpp23 sk_sp<KeyframeAnimator> make(const AnimationBuilder& abuilder, in make() argument
28 if (!this->parseKeyframes(abuilder, jkfs)) { in make()
40 bool parseValue(const AnimationBuilder& abuilder, const skjson::Value& jv) const override { in parseValue() argument
41 return Parse(jv, abuilder, fTarget); in parseValue()
45 bool parseKFValue(const AnimationBuilder& abuilder, in parseKFValue() argument
50 if (!Parse(jv, abuilder, &val)) { in parseKFValue()
96 bool AnimatablePropertyContainer::bind<TextValue>(const AnimationBuilder& abuilder, in bind() argument
100 return this->bindImpl(abuilder, jprop, builder); in bind()
DAnimator.cpp50 bool AnimatablePropertyContainer::bindImpl(const AnimationBuilder& abuilder, in bindImpl() argument
61 abuilder.log(Logger::Level::kWarning, nullptr, "Unsupported expression."); in bindImpl()
67 if (builder.parseValue(abuilder, jpropK)) { in bindImpl()
73 abuilder.log(Logger::Level::kError, jprop, in bindImpl()
83 animator = builder.make(abuilder, *jkfs); in bindImpl()
87 abuilder.log(Logger::Level::kError, jprop, "Could not parse keyframed property."); in bindImpl()
DVec2KeyframeAnimator.cpp35 sk_sp<KeyframeAnimator> make(const AnimationBuilder& abuilder, in make() argument
40 if (!this->parseKeyframes(abuilder, jkfs)) { in make()
212 bool AnimatablePropertyContainer::bindAutoOrientable(const AnimationBuilder& abuilder, in bindAutoOrientable() argument
222 return this->bindImpl(abuilder, jprop, builder); in bindAutoOrientable()
226 return this->bind(abuilder, (*jprop)["x"], &v->x) in bindAutoOrientable()
227 | this->bind(abuilder, (*jprop)["y"], &v->y); in bindAutoOrientable()
231 bool AnimatablePropertyContainer::bind<Vec2Value>(const AnimationBuilder& abuilder, in bind() argument
234 return this->bindAutoOrientable(abuilder, jprop, v, nullptr); in bind()
DVectorKeyframeAnimator.cpp152 sk_sp<KeyframeAnimator> VectorKeyframeAnimatorBuilder::make(const AnimationBuilder& abuilder, in make() argument
172 if (!this->parseKeyframes(abuilder, jkfs)) { in make()
230 bool AnimatablePropertyContainer::bind<VectorValue>(const AnimationBuilder& abuilder, in bind() argument
254 return this->bindImpl(abuilder, jprop, builder); in bind()
259 return this->bind(abuilder, (*jprop)["x"], v->data() + 0) in bind()
260 | this->bind(abuilder, (*jprop)["y"], v->data() + 1) in bind()
261 | this->bind(abuilder, (*jprop)["z"], v->data() + 2); in bind()

123