Home
last modified time | relevance | path

Searched refs:jlayer (Results 1 – 13 of 13) sorted by relevance

/external/skqp/modules/skottie/src/
DSkottieLayer.cpp241 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()
[all …]
DSkottiePrecompLayer.cpp21 sk_sp<sksg::RenderNode> AnimationBuilder::attachPrecompLayer(const skjson::ObjectValue& jlayer, in attachPrecompLayer() argument
24 const skjson::ObjectValue* time_remap = jlayer["tm"]; in attachPrecompLayer()
26 const auto start_time = time_remap ? 0.0f : ParseDefault<float>(jlayer["st"], 0.0f), in attachPrecompLayer()
27 stretch_time = time_remap ? 1.0f : ParseDefault<float>(jlayer["sr"], 1.0f); in attachPrecompLayer()
33 auto precomp_layer = this->attachAssetRef(jlayer, in attachPrecompLayer()
/external/skia/modules/skottie/src/layers/
DPrecompLayer.cpp77 sk_sp<sksg::RenderNode> AnimationBuilder::attachPrecompLayer(const skjson::ObjectValue& jlayer, in attachPrecompLayer() argument
80 if (const skjson::ObjectValue* jtm = jlayer["tm"]) { in attachPrecompLayer()
84 const auto start_time = ParseDefault<float>(jlayer["st"], 0.0f), in attachPrecompLayer()
85 stretch_time = ParseDefault<float>(jlayer["sr"], 1.0f); in attachPrecompLayer()
91 layer_info->fSize = SkSize::Make(ParseDefault<float>(jlayer["w"], 0.0f), in attachPrecompLayer()
92 ParseDefault<float>(jlayer["h"], 0.0f)); in attachPrecompLayer()
99 auto precomp_layer = this->attachAssetRef(jlayer, in attachPrecompLayer()
DSolidLayer.cpp20 sk_sp<sksg::RenderNode> AnimationBuilder::attachSolidLayer(const skjson::ObjectValue& jlayer, in attachSolidLayer() argument
22 layer_info->fSize = SkSize::Make(ParseDefault<float>(jlayer["sw"], 0.0f), in attachSolidLayer()
23 ParseDefault<float>(jlayer["sh"], 0.0f)); in attachSolidLayer()
24 const skjson::StringValue* hex_str = jlayer["sc"]; in attachSolidLayer()
30 this->log(Logger::Level::kError, &jlayer, "Could not parse solid layer."); in attachSolidLayer()
DImageLayer.cpp143 sk_sp<sksg::RenderNode> AnimationBuilder::attachImageLayer(const skjson::ObjectValue& jlayer, in attachImageLayer() argument
145 return this->attachAssetRef(jlayer, in attachImageLayer()
DTextLayer.cpp250 sk_sp<sksg::RenderNode> AnimationBuilder::attachTextLayer(const skjson::ObjectValue& jlayer, in attachTextLayer() argument
252 return this->attachDiscardableAdapter<TextAdapter>(jlayer, in attachTextLayer()
/external/skia/modules/skottie/src/
DComposition.cpp90 const skjson::ObjectValue& jlayer, in attachAssetRef() argument
93 const auto refId = ParseDefault<SkString>(jlayer["refId"], SkString()); in attachAssetRef()
141 for (const skjson::ObjectValue* jlayer : *jlayers) { in CompositionBuilder()
142 if (!jlayer) continue; in CompositionBuilder()
145 const auto& lbuilder = fLayerBuilders.emplace_back(*jlayer); in CompositionBuilder()
155 abuilder.log(Logger::Level::kWarning, jlayer, in CompositionBuilder()
DCamera.cpp54 CameraAdaper::CameraAdaper(const skjson::ObjectValue& jlayer, in CameraAdaper() argument
65 this->bind(abuilder, jlayer["pe"], fZoom); in CameraAdaper()
118 sk_sp<sksg::Transform> AnimationBuilder::attachCamera(const skjson::ObjectValue& jlayer, in attachCamera() argument
122 auto adapter = sk_make_sp<CameraAdaper>(jlayer, jtransform, *this, viewport_size); in attachCamera()
DLayer.cpp271 LayerBuilder::LayerBuilder(const skjson::ObjectValue& jlayer) in LayerBuilder() argument
272 : fJlayer(jlayer) in LayerBuilder()
273 , fIndex(ParseDefault<int>(jlayer["ind"], -1)) in LayerBuilder()
274 , fParentIndex(ParseDefault<int>(jlayer["parent"], -1)) in LayerBuilder()
275 , fType(ParseDefault<int>(jlayer["ty"], -1)) { in LayerBuilder()
277 if (this->isCamera() || ParseDefault<int>(jlayer["ddd"], 0)) { in LayerBuilder()
DCamera.h18 CameraAdaper(const skjson::ObjectValue& jlayer,
DLayer.h20 explicit LayerBuilder(const skjson::ObjectValue& jlayer);
DSkottiePriv.h71 sk_sp<sksg::Transform> attachCamera(const skjson::ObjectValue& jlayer,
/external/skia/modules/skottie/src/text/
DTextAdapter.cpp25 sk_sp<TextAdapter> TextAdapter::Make(const skjson::ObjectValue& jlayer, in Make() argument
56 const skjson::ObjectValue* jt = jlayer["t"]; in Make()
60 abuilder->log(Logger::Level::kError, &jlayer, "Invalid text layer."); in Make()