Home
last modified time | relevance | path

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

123

/external/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()
/external/skqp/modules/skottie/src/
DSkottiePriv.h27 class ObjectValue; variable
50 std::unique_ptr<sksg::Scene> parse(const skjson::ObjectValue&);
72 sk_sp<sksg::Color> attachColor(const skjson::ObjectValue&, AnimatorScope*,
74 sk_sp<sksg::Transform> attachMatrix2D(const skjson::ObjectValue&, AnimatorScope*,
76 sk_sp<sksg::Transform> attachMatrix3D(const skjson::ObjectValue&, AnimatorScope*,
78 sk_sp<sksg::RenderNode> attachOpacity(const skjson::ObjectValue&, AnimatorScope*,
89 void parseFonts (const skjson::ObjectValue* jfonts,
94 sk_sp<sksg::RenderNode> attachComposition(const skjson::ObjectValue&, AnimatorScope*) const;
95 sk_sp<sksg::RenderNode> attachLayer(const skjson::ObjectValue*, AttachLayerContext*) const;
100 sk_sp<sksg::RenderNode> attachAssetRef(const skjson::ObjectValue&, AnimatorScope*,
[all …]
DSkottieShapeLayer.cpp35 sk_sp<sksg::GeometryNode> AttachPathGeometry(const skjson::ObjectValue& jpath, in AttachPathGeometry()
41 sk_sp<sksg::GeometryNode> AttachRRectGeometry(const skjson::ObjectValue& jrect, in AttachRRectGeometry()
71 sk_sp<sksg::GeometryNode> AttachEllipseGeometry(const skjson::ObjectValue& jellipse, in AttachEllipseGeometry()
99 sk_sp<sksg::GeometryNode> AttachPolystarGeometry(const skjson::ObjectValue& jstar, in AttachPolystarGeometry()
148 sk_sp<sksg::Gradient> AttachGradient(const skjson::ObjectValue& jgrad, in AttachGradient()
150 const skjson::ObjectValue* stops = jgrad["g"]; in AttachGradient()
189 sk_sp<sksg::PaintNode> AttachPaint(const skjson::ObjectValue& jpaint, in AttachPaint()
205 sk_sp<sksg::PaintNode> AttachStroke(const skjson::ObjectValue& jstroke, in AttachStroke()
239 sk_sp<sksg::PaintNode> AttachColorFill(const skjson::ObjectValue& jfill, in AttachColorFill()
244 sk_sp<sksg::PaintNode> AttachGradientFill(const skjson::ObjectValue& jfill, in AttachGradientFill()
[all …]
DSkottieLayer.cpp83 for (const skjson::ObjectValue* m : *jmask) { in AttachMask()
241 const skjson::ObjectValue& jlayer, AnimatorScope* ascope, in attachAssetRef()
242 const std::function<sk_sp<sksg::RenderNode>(const skjson::ObjectValue&, in attachAssetRef() argument
274 sk_sp<sksg::RenderNode> AnimationBuilder::attachSolidLayer(const skjson::ObjectValue& jlayer, in attachSolidLayer()
296 AnimationBuilder::loadImageAsset(const skjson::ObjectValue& jimage) const { in loadImageAsset()
322 sk_sp<sksg::RenderNode> AnimationBuilder::attachImageAsset(const skjson::ObjectValue& jimage, in attachImageAsset()
381 sk_sp<sksg::RenderNode> AnimationBuilder::attachImageLayer(const skjson::ObjectValue& jlayer, in attachImageLayer()
385 [this, &layer_info] (const skjson::ObjectValue& jimage, AnimatorScope* ascope) { in attachImageLayer()
390 sk_sp<sksg::RenderNode> AnimationBuilder::attachNullLayer(const skjson::ObjectValue& layer, in attachNullLayer()
407 sk_sp<sksg::Transform> attachLayerTransform(const skjson::ObjectValue& jlayer, in attachLayerTransform()
[all …]
DSkottieTextLayer.cpp86 void AnimationBuilder::parseFonts(const skjson::ObjectValue* jfonts, in parseFonts()
106 for (const skjson::ObjectValue* jfont : *jlist) { in parseFonts()
178 for (const skjson::ObjectValue* jchar : *jchars) { in parseFonts()
238 sk_sp<sksg::RenderNode> AnimationBuilder::attachTextLayer(const skjson::ObjectValue& layer, in attachTextLayer()
268 const skjson::ObjectValue* jt = layer["t"]; in attachTextLayer()
279 const skjson::ObjectValue* jd = (*jt)["d"]; in attachTextLayer()
/external/skia/modules/skottie/src/
DSkottiePriv.h29 class ObjectValue; variable
64 AnimationInfo parse(const skjson::ObjectValue&);
80 sk_sp<sksg::Transform> attachMatrix2D(const skjson::ObjectValue&, sk_sp<sksg::Transform>,
82 sk_sp<sksg::Transform> attachMatrix3D(const skjson::ObjectValue&, sk_sp<sksg::Transform>,
85 sk_sp<sksg::Transform> attachCamera(const skjson::ObjectValue& jlayer,
86 const skjson::ObjectValue& jtransform,
90 sk_sp<sksg::RenderNode> attachOpacity(const skjson::ObjectValue&,
149 AutoPropertyTracker(const AnimationBuilder* builder, const skjson::ObjectValue& obj) in AutoPropertyTracker()
166 void updateContext(PropertyObserver*, const skjson::ObjectValue&);
187 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()
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()
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()
180 AnimationBuilder::AnimationInfo AnimationBuilder::parse(const skjson::ObjectValue& jroot) { in parse()
200 for (const skjson::ObjectValue* asset : *jassets) { in parseAssets()
215 for (const skjson::ObjectValue* m : *jmarkers) { in dispatchMarkers()
293 const skjson::ObjectValue& obj) { in updateContext()
373 if (!dom.root().is<skjson::ObjectValue>()) { in make()
380 const auto& json = dom.root().as<skjson::ObjectValue>(); in make()
/external/skqp/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 …]
/external/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 …]
/external/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 …]
/external/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*, KeyframeAnimatorBuilder&);
/external/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()
/external/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()
/external/skqp/dm/
DDMJsonWriter.cpp128 const ObjectValue* root = dom.root(); in ReadJson()
139 for (const ObjectValue* r : *results) { in ReadJson()
140 const ObjectValue& key = (*r)["key"].as<ObjectValue>(); in ReadJson()
141 const ObjectValue& options = (*r)["options"].as<ObjectValue>(); in ReadJson()
/external/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()
107 for (const skjson::ObjectValue* jeffect : jeffects) { in attachEffects()
138 sk_sp<sksg::RenderNode> (EffectBuilder::*)(const skjson::ObjectValue&, in attachStyles()
148 for (const skjson::ObjectValue* jstyle : jstyles) { in attachStyles()
178 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()

123