Lines Matching refs:jlayer
241 const skjson::ObjectValue& jlayer, AnimatorScope* ascope, in attachAssetRef() argument
245 const auto refId = ParseDefault<SkString>(jlayer["refId"], SkString()); in attachAssetRef()
274 sk_sp<sksg::RenderNode> AnimationBuilder::attachSolidLayer(const skjson::ObjectValue& jlayer, in attachSolidLayer() argument
277 const auto size = SkSize::Make(ParseDefault<float>(jlayer["sw"], 0.0f), in attachSolidLayer()
278 ParseDefault<float>(jlayer["sh"], 0.0f)); in attachSolidLayer()
279 const skjson::StringValue* hex_str = jlayer["sc"]; in attachSolidLayer()
285 this->log(Logger::Level::kError, &jlayer, "Could not parse solid layer."); in attachSolidLayer()
381 sk_sp<sksg::RenderNode> AnimationBuilder::attachImageLayer(const skjson::ObjectValue& jlayer, in attachImageLayer() argument
384 return this->attachAssetRef(jlayer, ascope, in attachImageLayer()
407 sk_sp<sksg::Transform> attachLayerTransform(const skjson::ObjectValue& jlayer, in attachLayerTransform()
409 const auto layer_index = ParseDefault<int>(jlayer["ind"], -1); in attachLayerTransform()
416 return this->attachLayerTransformImpl(jlayer, abuilder, layer_index); in attachLayerTransform()
420 sk_sp<sksg::Transform> attachParentLayerTransform(const skjson::ObjectValue& jlayer, in attachParentLayerTransform()
423 const auto parent_index = ParseDefault<int>(jlayer["parent"], -1); in attachParentLayerTransform()
441 sk_sp<sksg::Transform> attachLayerTransformImpl(const skjson::ObjectValue& jlayer, in attachLayerTransformImpl()
449 auto parent_matrix = this->attachParentLayerTransform(jlayer, abuilder, layer_index); in attachLayerTransformImpl()
451 if (const skjson::ObjectValue* jtransform = jlayer["ks"]) { in attachLayerTransformImpl()
452 auto transform_node = (ParseDefault<int>(jlayer["ddd"], 0) == 0) in attachLayerTransformImpl()
462 sk_sp<sksg::RenderNode> AnimationBuilder::attachLayer(const skjson::ObjectValue* jlayer, in attachLayer() argument
464 if (!jlayer) return nullptr; in attachLayer()
467 ParseDefault<float>((*jlayer)["ip"], 0.0f), in attachLayer()
468 ParseDefault<float>((*jlayer)["op"], 0.0f) in attachLayer()
476 const AutoPropertyTracker apt(this, *jlayer); in attachLayer()
490 int type = ParseDefault<int>((*jlayer)["ty"], -1); in attachLayer()
498 auto layer = (this->*(gLayerAttachers[type]))(*jlayer, layer_info, &layer_animators); in attachLayer()
502 if (Parse<float>((*jlayer)["w"], &w) && Parse<float>((*jlayer)["h"], &h)) { in attachLayer()
509 layer = AttachMask((*jlayer)["masksProperties"], this, &layer_animators, std::move(layer)); in attachLayer()
512 if (auto layer_transform = layerCtx->attachLayerTransform(*jlayer, this)) { in attachLayer()
518 if (const skjson::ObjectValue* jtransform = (*jlayer)["ks"]) { in attachLayer()
523 if (const skjson::ArrayValue* jeffects = (*jlayer)["ef"]) { in attachLayer()
565 if (ParseDefault<bool>((*jlayer)["td"], false)) { in attachLayer()
577 const auto matteType = ParseDefault<size_t>((*jlayer)["tt"], 1) - 1; in attachLayer()