Home
last modified time | relevance | path

Searched refs:ObjectValue (Results 1 – 25 of 62) sorted by relevance

123

/third_party/skia/modules/skottie/src/layers/shapelayer/
DShapeLayer.h19 class ObjectValue; variable
42 static sk_sp<sksg::GeometryNode> AttachPathGeometry(const skjson::ObjectValue&,
44 static sk_sp<sksg::GeometryNode> AttachRRectGeometry(const skjson::ObjectValue&,
46 static sk_sp<sksg::GeometryNode> AttachEllipseGeometry(const skjson::ObjectValue&,
48 static sk_sp<sksg::GeometryNode> AttachPolystarGeometry(const skjson::ObjectValue&,
51 static sk_sp<sksg::PaintNode> AttachColorFill(const skjson::ObjectValue&,
53 static sk_sp<sksg::PaintNode> AttachColorStroke(const skjson::ObjectValue&,
55 static sk_sp<sksg::PaintNode> AttachGradientFill(const skjson::ObjectValue&,
57 static sk_sp<sksg::PaintNode> AttachGradientStroke(const skjson::ObjectValue&,
61 const skjson::ObjectValue&, const AnimationBuilder*,
[all …]
DShapeLayer.cpp33 using GeometryAttacherT = sk_sp<sksg::GeometryNode> (*)(const skjson::ObjectValue&,
43 std::vector<sk_sp<sksg::GeometryNode>> (*)(const skjson::ObjectValue&,
54 using PaintAttacherT = sk_sp<sksg::PaintNode> (*)(const skjson::ObjectValue&,
73 std::vector<sk_sp<sksg::RenderNode>> (*)(const skjson::ObjectValue&,
102 const ShapeInfo* FindShapeInfo(const skjson::ObjectValue& jshape) { in FindShapeInfo()
140 const skjson::ObjectValue& fJson;
146 sk_sp<sksg::GeometryNode> ShapeBuilder::AttachPathGeometry(const skjson::ObjectValue& jpath, in AttachPathGeometry()
172 const skjson::ObjectValue* jtransform = nullptr; in attachShape()
175 const skjson::ObjectValue& fJson; in attachShape()
188 const skjson::ObjectValue* shape = (*jshape)[jshape->size() - 1 - i]; in attachShape()
[all …]
DFillStroke.cpp25 FillStrokeAdapter(const skjson::ObjectValue& jpaint, in FillStrokeAdapter()
105 if (const skjson::ObjectValue* jint = jdash[i]) { in DashAdapter()
128 sk_sp<sksg::PaintNode> ShapeBuilder::AttachFill(const skjson::ObjectValue& jpaint, in AttachFill()
140 sk_sp<sksg::PaintNode> ShapeBuilder::AttachStroke(const skjson::ObjectValue& jpaint, in AttachStroke()
152 sk_sp<sksg::PaintNode> ShapeBuilder::AttachColorFill(const skjson::ObjectValue& jpaint, in AttachColorFill()
160 sk_sp<sksg::PaintNode> ShapeBuilder::AttachColorStroke(const skjson::ObjectValue& jpaint, in AttachColorStroke()
169 const skjson::ObjectValue& jstroke, in AdjustStrokeGeometry()
DGradient.cpp24 static sk_sp<GradientAdapter> Make(const skjson::ObjectValue& jgrad, in Make()
26 const skjson::ObjectValue* jstops = jgrad["g"]; in Make()
54 const skjson::ObjectValue& jgrad, in GradientAdapter()
55 const skjson::ObjectValue& jstops, in GradientAdapter()
207 sk_sp<sksg::PaintNode> ShapeBuilder::AttachGradientFill(const skjson::ObjectValue& jgrad, in AttachGradientFill()
216 sk_sp<sksg::PaintNode> ShapeBuilder::AttachGradientStroke(const skjson::ObjectValue& jgrad, in AttachGradientStroke()
DRepeater.cpp116 RepeaterAdapter(const skjson::ObjectValue& jrepeater, in RepeaterAdapter()
117 const skjson::ObjectValue& jtransform, in RepeaterAdapter()
167 const skjson::ObjectValue& jrepeater, in AttachRepeaterDrawEffect()
172 if (const skjson::ObjectValue* jtransform = jrepeater["tr"]) { in AttachRepeaterDrawEffect()
/third_party/skia/modules/skottie/src/
DSkottiePriv.h29 class ObjectValue; variable
65 AnimationInfo parse(const skjson::ObjectValue&);
81 sk_sp<sksg::Transform> attachMatrix2D(const skjson::ObjectValue&, sk_sp<sksg::Transform>,
83 sk_sp<sksg::Transform> attachMatrix3D(const skjson::ObjectValue&, sk_sp<sksg::Transform>,
86 sk_sp<sksg::Transform> attachCamera(const skjson::ObjectValue& jlayer,
87 const skjson::ObjectValue& jtransform,
91 sk_sp<sksg::RenderNode> attachOpacity(const skjson::ObjectValue&,
150 …AutoPropertyTracker(const AnimationBuilder* builder, const skjson::ObjectValue& obj, const Propert… in AutoPropertyTracker()
167 void updateContext(PropertyObserver*, const skjson::ObjectValue&);
191 void parseFonts (const skjson::ObjectValue* jfonts,
[all …]
DTransform.h20 class ObjectValue; variable
31 const skjson::ObjectValue* janchor_point,
32 const skjson::ObjectValue* jposition,
33 const skjson::ObjectValue* jscale,
34 const skjson::ObjectValue* jrotation,
35 const skjson::ObjectValue* jskew,
36 const skjson::ObjectValue* jskew_axis,
78 TransformAdapter3D(const skjson::ObjectValue&, const AnimationBuilder&);
DTransform.cpp18 const skjson::ObjectValue* janchor_point, in TransformAdapter2D()
19 const skjson::ObjectValue* jposition, in TransformAdapter2D()
20 const skjson::ObjectValue* jscale, in TransformAdapter2D()
21 const skjson::ObjectValue* jrotation, in TransformAdapter2D()
22 const skjson::ObjectValue* jskew, in TransformAdapter2D()
23 const skjson::ObjectValue* jskew_axis, in TransformAdapter2D()
108 sk_sp<sksg::Transform> AnimationBuilder::attachMatrix2D(const skjson::ObjectValue& jtransform, in attachMatrix2D()
142 TransformAdapter3D::TransformAdapter3D(const skjson::ObjectValue& jtransform, in TransformAdapter3D()
191 sk_sp<sksg::Transform> AnimationBuilder::attachMatrix3D(const skjson::ObjectValue& jtransform, in attachMatrix3D()
DComposition.cpp23 const skjson::ObjectValue& jlayer) { in ScopedAssetRef()
49 const skjson::ObjectValue& jcomp) in CompositionBuilder()
53 if (const skjson::ObjectValue* jmb = jcomp["mb"]) { in CompositionBuilder()
66 for (const skjson::ObjectValue* jlayer : *jlayers) { in CompositionBuilder()
DSkottie.cpp78 OpacityAdapter(const skjson::ObjectValue& jobject, in OpacityAdapter()
95 static SkBlendMode GetBlendMode(const skjson::ObjectValue& jobject, in GetBlendMode()
129 sk_sp<sksg::RenderNode> AnimationBuilder::attachOpacity(const skjson::ObjectValue& jobject, in attachOpacity()
150 sk_sp<sksg::RenderNode> AnimationBuilder::attachBlendMode(const skjson::ObjectValue& jobject, in attachBlendMode()
182 AnimationBuilder::AnimationInfo AnimationBuilder::parse(const skjson::ObjectValue& jroot) { in parse()
203 for (const skjson::ObjectValue* asset : *jassets) { in parseAssets()
218 for (const skjson::ObjectValue* m : *jmarkers) { in dispatchMarkers()
300 const skjson::ObjectValue& obj) { in updateContext()
385 if (!dom.root().is<skjson::ObjectValue>()) { in make()
392 const auto& json = dom.root().as<skjson::ObjectValue>(); in make()
DCamera.cpp54 CameraAdaper::CameraAdaper(const skjson::ObjectValue& jlayer, in CameraAdaper()
55 const skjson::ObjectValue& jtransform, in CameraAdaper()
118 sk_sp<sksg::Transform> AnimationBuilder::attachCamera(const skjson::ObjectValue& jlayer, in attachCamera()
119 const skjson::ObjectValue& jtransform, in attachCamera()
/third_party/skia/tests/
DJSONTest.cpp200 const auto& jroot = dom.root().as<ObjectValue>(); in DEF_TEST()
201 REPORTER_ASSERT(reporter, jroot.is<ObjectValue>()); in DEF_TEST()
212 check_vector<ObjectValue>(reporter, v, 0, false); in DEF_TEST()
224 check_vector<ObjectValue>(reporter, v, 0, false); in DEF_TEST()
236 check_vector<ObjectValue>(reporter, v, 0, false); in DEF_TEST()
248 check_vector<ObjectValue>(reporter, v, 0, false); in DEF_TEST()
260 check_vector<ObjectValue>(reporter, v, 0, false); in DEF_TEST()
272 check_vector<ObjectValue>(reporter, v, 0, false); in DEF_TEST()
283 check_vector<ObjectValue>(reporter, v, 0, false); in DEF_TEST()
301 check_vector<ObjectValue>(reporter, v, 3, true); in DEF_TEST()
[all …]
/third_party/skia/experimental/skrive/src/reader/
DJsonReader.cpp72 if (ctx.fContainer->is<skjson::ObjectValue>()) { in readProp()
73 return static_cast<const T*>(ctx.fContainer->as<skjson::ObjectValue>()[label]); in readProp()
148 return ctx.fContainer->is<skjson::ObjectValue>() in currentLength()
149 ? ctx.fContainer->as<skjson::ObjectValue>().size() in currentLength()
169 const auto* jobj = this->readProp<skjson::ObjectValue>(label); in openObject()
179 SkASSERT(fContextStack.back().fContainer->is<skjson::ObjectValue>()); in closeObject()
197 const auto& container = ctx.fContainer->as<skjson::ObjectValue>(); in openObjectBlock()
201 if (m.fValue.is<skjson::ObjectValue>() || m.fValue.is<skjson::ArrayValue>()) { in openObjectBlock()
221 if (m.is<skjson::ObjectValue>()) { in openArrayBlock()
222 if (const skjson::StringValue* jtype = m.as<skjson::ObjectValue>()["type"]) { in openArrayBlock()
[all …]
/third_party/skia/modules/skottie/src/animator/
DAnimator.h19 class ObjectValue; variable
50 bool bind(const AnimationBuilder&, const skjson::ObjectValue*, T*);
53 bool bind(const AnimationBuilder& abuilder, const skjson::ObjectValue* jobject, T& v) { in bind()
60 const skjson::ObjectValue* jobject,
75 bool bindImpl(const AnimationBuilder&, const skjson::ObjectValue*, AnimatorBuilder&);
DKeyframeAnimator.cpp126 const auto parse_value = [&](const skjson::ObjectValue& jkf, size_t i, Keyframe::Value* v) { in parseKeyframes()
132 const skjson::ObjectValue* prev_kf = jkfs[i - 1]; in parseKeyframes()
145 const skjson::ObjectValue* jkf = jkfs[i]; in parseKeyframes()
198 uint32_t AnimatorBuilder::parseMapping(const skjson::ObjectValue& jkf) { in parseMapping()
DKeyframeAnimator.h21 class ObjectValue; variable
127 const skjson::ObjectValue&,
137 uint32_t parseMapping(const skjson::ObjectValue&);
/third_party/skia/modules/skottie/src/layers/
DTextLayer.cpp102 bool parse_glyph_path(const skjson::ObjectValue* jdata, in parse_glyph_path()
133 for (const skjson::ObjectValue* jgrp : *jshapes) { in parse_glyph_path()
143 for (const skjson::ObjectValue* jshape : *jit) { in parse_glyph_path()
174 void AnimationBuilder::parseFonts(const skjson::ObjectValue* jfonts, in parseFonts()
177 sk_sp<sksg::RenderNode> AnimationBuilder::attachTextLayer(const skjson::ObjectValue& jlayer, in attachTextLayer()
182 void AnimationBuilder::parseFonts(const skjson::ObjectValue* jfonts, in parseFonts()
208 for (const skjson::ObjectValue* jfont : *jlist) { in parseFonts()
315 for (const skjson::ObjectValue* jchar : jchars) { in resolveEmbeddedTypefaces()
400 sk_sp<sksg::RenderNode> AnimationBuilder::attachTextLayer(const skjson::ObjectValue& jlayer, in attachTextLayer()
DPrecompLayer.cpp28 TimeRemapper(const skjson::ObjectValue& jtm, const AnimationBuilder* abuilder, float scale) in TimeRemapper()
84 const skjson::ObjectValue& jlayer, in attachExternalPrecompLayer()
164 sk_sp<sksg::RenderNode> AnimationBuilder::attachPrecompLayer(const skjson::ObjectValue& jlayer, in attachPrecompLayer()
167 if (const skjson::ObjectValue* jtm = jlayer["tm"]) { in attachPrecompLayer()
/third_party/skia/dm/
DDMJsonWriter.cpp111 const ObjectValue* root = dom.root(); in ReadJson()
122 for (const ObjectValue* r : *results) { in ReadJson()
123 const ObjectValue& key = (*r)["key"].as<ObjectValue>(); in ReadJson()
124 const ObjectValue& options = (*r)["options"].as<ObjectValue>(); in ReadJson()
/third_party/skia/modules/skottie/src/effects/
DTransformEffect.cpp24 const skjson::ObjectValue* jopacity, in TransformEffectAdapter()
25 const skjson::ObjectValue* jscale_uniform, in TransformEffectAdapter()
26 const skjson::ObjectValue* jscale_width, in TransformEffectAdapter()
27 const skjson::ObjectValue* jscale_height, in TransformEffectAdapter()
DEffects.cpp29 EffectBuilder::EffectBuilderT EffectBuilder::findBuilder(const skjson::ObjectValue& jeffect) const { in findBuilder()
111 for (const skjson::ObjectValue* jeffect : jeffects) { in attachEffects()
142 sk_sp<sksg::RenderNode> (EffectBuilder::*)(const skjson::ObjectValue&, in attachStyles()
152 for (const skjson::ObjectValue* jstyle : jstyles) { in attachStyles()
182 const skjson::ObjectValue* jprop = jprops[prop_index]; in GetPropValue()
DShadowStyles.cpp31 ShadowAdapter(const skjson::ObjectValue& jstyle, in ShadowAdapter()
116 static sk_sp<sksg::RenderNode> make_shadow_effect(const skjson::ObjectValue& jstyle, in make_shadow_effect()
127 sk_sp<sksg::RenderNode> EffectBuilder::attachDropShadowStyle(const skjson::ObjectValue& jstyle, in attachDropShadowStyle()
133 sk_sp<sksg::RenderNode> EffectBuilder::attachInnerShadowStyle(const skjson::ObjectValue& jstyle, in attachInnerShadowStyle()
DGlowStyles.cpp32 GlowAdapter(const skjson::ObjectValue& jstyle, const AnimationBuilder& abuilder, Type type) in GlowAdapter()
142 static sk_sp<sksg::RenderNode> make_glow_effect(const skjson::ObjectValue& jstyle, in make_glow_effect()
153 sk_sp<sksg::RenderNode> EffectBuilder::attachOuterGlowStyle(const skjson::ObjectValue& jstyle, in attachOuterGlowStyle()
158 sk_sp<sksg::RenderNode> EffectBuilder::attachInnerGlowStyle(const skjson::ObjectValue& jstyle, in attachInnerGlowStyle()
DEffects.h99 sk_sp<sksg::RenderNode> attachDropShadowStyle(const skjson::ObjectValue&,
101 sk_sp<sksg::RenderNode> attachInnerShadowStyle(const skjson::ObjectValue&,
103 sk_sp<sksg::RenderNode> attachInnerGlowStyle(const skjson::ObjectValue&,
105 sk_sp<sksg::RenderNode> attachOuterGlowStyle(const skjson::ObjectValue&,
108 EffectBuilderT findBuilder(const skjson::ObjectValue&) const;
/third_party/skia/modules/skottie/src/text/
DTextAnimator.cpp61 sk_sp<TextAnimator> TextAnimator::Make(const skjson::ObjectValue* janimator, in Make()
68 const skjson::ObjectValue* jprops = (*janimator)["a"]; in Make()
79 for (const skjson::ObjectValue* jselector : *jselectors) { in Make()
176 const skjson::ObjectValue& jprops, in TextAnimator()

123