/third_party/skia/modules/skottie/src/effects/ |
H A D | Effects.h | 28 sk_sp<sksg::RenderNode> attachEffects(const skjson::ArrayValue&, 31 sk_sp<sksg::RenderNode> attachStyles(const skjson::ArrayValue&, 34 static const skjson::Value& GetPropValue(const skjson::ArrayValue& jprops, size_t prop_index); 41 using EffectBuilderT = sk_sp<sksg::RenderNode>(EffectBuilder::*)(const skjson::ArrayValue&, 44 sk_sp<sksg::RenderNode> attachBlackAndWhiteEffect (const skjson::ArrayValue&, 46 sk_sp<sksg::RenderNode> attachBrightnessContrastEffect(const skjson::ArrayValue&, 48 sk_sp<sksg::RenderNode> attachBulgeEffect (const skjson::ArrayValue&, 50 sk_sp<sksg::RenderNode> attachCornerPinEffect (const skjson::ArrayValue&, 52 sk_sp<sksg::RenderNode> attachCCTonerEffect (const skjson [all...] |
H A D | Effects.cpp | 29 EffectBuilder::EffectBuilderT EffectBuilder::findBuilder(const skjson::ObjectValue& jeffect) const { in findBuilder() 64 const skjson::StringValue* mn = jeffect["mn"]; in findBuilder() 105 sk_sp<sksg::RenderNode> EffectBuilder::attachEffects(const skjson::ArrayValue& jeffects, in attachEffects() 111 for (const skjson::ObjectValue* jeffect : jeffects) { in attachEffects() 117 const skjson::ArrayValue* jprops = (*jeffect)["ef"]; in attachEffects() 134 sk_sp<sksg::RenderNode> EffectBuilder::attachStyles(const skjson::ArrayValue& jstyles, in attachStyles() 142 sk_sp<sksg::RenderNode> (EffectBuilder::*)(const skjson::ObjectValue&, in attachStyles() 152 for (const skjson::ObjectValue* jstyle : jstyles) { in attachStyles() 174 const skjson::Value& EffectBuilder::GetPropValue(const skjson [all...] |
H A D | SkSLEffect.cpp | 57 SkSLEffectAdapter(const skjson::ArrayValue& jprops, in SkSLEffectAdapter() 69 const skjson::ObjectValue* jSkSL = jprops[kSkSL_index]; in SkSLEffectAdapter() 73 const skjson::StringValue* jShader = (*jSkSL)["sh"]; in SkSLEffectAdapter() 88 const skjson::ObjectValue* jprop = jprops[i]; in SkSLEffectAdapter() 90 const skjson::StringValue* uniformName = (*jprop)["nm"]; in SkSLEffectAdapter() 134 sk_sp<sksg::RenderNode> EffectBuilder::attachSkSLEffect(const skjson::ArrayValue& jprops, in attachSkSLEffect()
|
/third_party/skia/modules/particles/include/ |
H A D | SkParticleSerialization.h | 69 SkFromJsonVisitor(const skjson::Value& v) : fRoot(v) { in SkFromJsonVisitor() 83 if (const skjson::ArrayValue* lines = get(name)) { 86 for (const skjson::StringValue* line : *lines) { 101 const skjson::StringValue* typeString = get("Type"); 107 fStack.push_back((const skjson::ObjectValue*)get(name)); 114 const skjson::ArrayValue* arrVal = get(name); 126 const skjson::Value& get(const char* name) { in get() 127 if (const skjson::Value* cur = fStack.back()) { in get() 128 if (cur->is<skjson::ArrayValue>()) { in get() 130 return cur->as<skjson in get() [all...] |
/third_party/skia/modules/skottie/src/ |
H A D | SkottiePriv.h | 27 namespace skjson { namespace 31 } // namespace skjson 65 AnimationInfo parse(const skjson::ObjectValue&); 79 void log(Logger::Level, const skjson::Value*, const char fmt[], ...) const; 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&, 93 sk_sp<sksg::Path> attachPath(const skjson [all...] |
H A D | Transform.h | 18 namespace skjson { namespace 22 } // namespace skjson 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&);
|
H A D | Transform.cpp | 18 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() 112 if (jrotation->is<skjson::NullValue>()) { in attachMatrix2D() 142 TransformAdapter3D::TransformAdapter3D(const skjson::ObjectValue& jtransform, in TransformAdapter3D() 191 sk_sp<sksg::Transform> AnimationBuilder::attachMatrix3D(const skjson [all...] |
H A D | Skottie.cpp | 47 void AnimationBuilder::log(Logger::Level lvl, const skjson::Value* json, in log() 78 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() 198 void AnimationBuilder::parseAssets(const skjson::ArrayValue* jassets) { in parseAssets() 203 for (const skjson::ObjectValue* asset : *jassets) { in parseAssets() 210 void AnimationBuilder::dispatchMarkers(const skjson::ArrayValue* jmarkers) const { in dispatchMarkers() 218 for (const skjson in dispatchMarkers() [all...] |
H A D | Camera.cpp | 54 CameraAdaper::CameraAdaper(const skjson::ObjectValue& jlayer, in CameraAdaper() 55 const skjson::ObjectValue& jtransform, in CameraAdaper() 62 , fType(jtransform["a"].is<skjson::NullValue>() ? CameraType::kOneNode in CameraAdaper() 118 sk_sp<sksg::Transform> AnimationBuilder::attachCamera(const skjson::ObjectValue& jlayer, in attachCamera() 119 const skjson::ObjectValue& jtransform, in attachCamera()
|
H A D | Composition.cpp | 23 const skjson::ObjectValue& jlayer) { in ScopedAssetRef() 49 const skjson::ObjectValue& jcomp) in CompositionBuilder() 53 if (const skjson::ObjectValue* jmb = jcomp["mb"]) { in CompositionBuilder() 64 if (const skjson::ArrayValue* jlayers = jcomp["layers"]) { in CompositionBuilder() 66 for (const skjson::ObjectValue* jlayer : *jlayers) { in CompositionBuilder()
|
H A D | SkottieJson.cpp | 21 using namespace skjson; 26 if (const skjson::ArrayValue* array = v) { in Parse() 32 if (const skjson::NumberValue* num = v) { in Parse() 58 if (const skjson::NumberValue* num = v) { in ParseIntegral() 79 if (const skjson::StringValue* sv = v) { in Parse()
|
/third_party/skia/modules/skottie/src/layers/shapelayer/ |
H A D | ShapeLayer.h | 17 namespace skjson { namespace 21 } // namespace skjson 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 [all...] |
H A D | FillStroke.cpp | 25 FillStrokeAdapter(const skjson::ObjectValue& jpaint, in FillStrokeAdapter() 93 DashAdapter(const skjson::ArrayValue& jdash, in DashAdapter() 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() 173 const skjson::ArrayValue* jdash = jstroke["d"]; in AdjustStrokeGeometry()
|
H A D | ShapeLayer.cpp | 33 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() 122 const skjson::StringValue* type = jshape["ty"]; in FindShapeInfo() 140 const skjson::ObjectValue& fJson; 146 sk_sp<sksg::GeometryNode> ShapeBuilder::AttachPathGeometry(const skjson::ObjectValue& jpath, in AttachPathGeometry() 164 sk_sp<sksg::RenderNode> AnimationBuilder::attachShape(const skjson::ArrayValue* jshape, in attachShape() 172 const skjson in attachShape() [all...] |
/third_party/skia/experimental/skrive/src/reader/ |
H A D | JsonReader.cpp | 58 explicit JsonReader(std::unique_ptr<skjson::DOM> dom) in JsonReader() 72 if (ctx.fContainer->is<skjson::ObjectValue>()) { in readProp() 73 return static_cast<const T*>(ctx.fContainer->as<skjson::ObjectValue>()[label]); in readProp() 76 const skjson::ArrayValue* jarr = *ctx.fContainer; in readProp() 90 const auto* jbool = this->readProp<skjson::BoolValue>(label); 96 const auto* jnum = this->readProp<skjson::NumberValue>(label); 110 const auto* jnum = this->readProp<skjson::NumberValue>(label); 116 const auto* jstr = this->readProp<skjson::StringValue>(label); 122 const auto* jarr = this->readProp<skjson::ArrayValue>(label); 131 const skjson [all...] |
/third_party/skia/modules/skottie/src/layers/ |
H A D | TextLayer.cpp | 102 bool parse_glyph_path(const skjson::ObjectValue* jdata, in parse_glyph_path() 127 const skjson::ArrayValue* jshapes = (*jdata)["shapes"]; in parse_glyph_path() 133 for (const skjson::ObjectValue* jgrp : *jshapes) { in parse_glyph_path() 138 const skjson::ArrayValue* jit = (*jgrp)["it"]; 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() 175 const skjson::ArrayValue* jchars) {} 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() 183 const skjson in parseFonts() [all...] |
H A D | AudioLayer.cpp | 53 sk_sp<sksg::RenderNode> AnimationBuilder::attachAudioLayer(const skjson::ObjectValue& jlayer, in attachAudioLayer() 59 const skjson::StringValue* name = jaudio["p"]; in attachAudioLayer() 60 const skjson::StringValue* path = jaudio["u"]; in attachAudioLayer() 61 const skjson::StringValue* id = jaudio["id"]; in attachAudioLayer()
|
H A D | PrecompLayer.cpp | 28 TimeRemapper(const skjson::ObjectValue& jtm, const AnimationBuilder* abuilder, float scale) in TimeRemapper() 84 const skjson::ObjectValue& jlayer, in attachExternalPrecompLayer() 91 const skjson::StringValue* id = jlayer["refId"]; in attachExternalPrecompLayer() 92 const skjson::StringValue* nm = jlayer["nm"]; 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()
|
H A D | FootageLayer.cpp | 79 AnimationBuilder::loadFootageAsset(const skjson::ObjectValue& jimage) const { in loadFootageAsset() 80 const skjson::StringValue* name = jimage["p"]; in loadFootageAsset() 81 const skjson::StringValue* path = jimage["u"]; in loadFootageAsset() 82 const skjson::StringValue* id = jimage["id"]; in loadFootageAsset() 104 sk_sp<sksg::RenderNode> AnimationBuilder::attachFootageAsset(const skjson::ObjectValue& jimage, in attachFootageAsset() 157 sk_sp<sksg::RenderNode> AnimationBuilder::attachFootageLayer(const skjson::ObjectValue& jlayer, in attachFootageLayer()
|
/third_party/skia/modules/skottie/src/animator/ |
H A D | ShapeKeyframeAnimator.cpp | 42 static const skjson::ObjectValue* shape_root(const skjson::Value& jv) { in shape_root() 43 if (const skjson::ArrayValue* av = jv) { in shape_root() 52 static bool parse_encoding_len(const skjson::Value& jv, size_t* len) { in parse_encoding_len() 54 if (const skjson::ArrayValue* jvs = (*jshape)["v"]) { in parse_encoding_len() 62 static bool parse_encoding_data(const skjson::Value& jv, size_t data_len, float data[]) { in parse_encoding_data() 69 const skjson::ArrayValue* jvs = (*jshape)["v"]; // vertex points in parse_encoding_data() 70 const skjson::ArrayValue* jis = (*jshape)["i"]; // in-tangent points in parse_encoding_data() 71 const skjson::ArrayValue* jos = (*jshape)["o"]; // out-tangent points in parse_encoding_data() 77 auto parse_point = [](const skjson in parse_encoding_data() [all...] |
H A D | VectorKeyframeAnimator.h | 19 using VectorLenParser = bool(*)(const skjson::Value&, size_t*); 20 using VectorDataParser = bool(*)(const skjson::Value&, size_t, float*); 25 const skjson::ArrayValue&) override; 30 bool parseValue(const AnimationBuilder&, const skjson::Value&) const override; 33 const skjson::ObjectValue&, 34 const skjson::Value&,
|
H A D | KeyframeAnimator.h | 19 namespace skjson { namespace 23 } // namespace skjson 116 const skjson::ArrayValue&) = 0; 120 virtual bool parseValue(const AnimationBuilder&, const skjson::Value&) const = 0; 127 const skjson::ObjectValue&, 128 const skjson::Value&, 131 bool parseKeyframes(const AnimationBuilder&, const skjson::ArrayValue&); 137 uint32_t parseMapping(const skjson::ObjectValue&);
|
H A D | Animator.h | 17 namespace skjson { namespace 21 } // namespace skjson 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&);
|
H A D | VectorKeyframeAnimator.cpp | 24 static bool parse_array(const skjson::ArrayValue* ja, float* a, size_t count) { in parse_array() 183 const skjson::ArrayValue& jkfs) { in makeFromKeyframes() 187 const skjson::ObjectValue* jkf0 = jkfs[0]; in makeFromKeyframes() 226 const skjson::Value& jv) const { in parseValue() 237 const skjson::ObjectValue&, in parseKFValue() 238 const skjson::Value& jv, in parseKFValue() 267 const skjson::ObjectValue* jprop, in bind() 278 [](const skjson::Value& jv, size_t* len) -> bool { in bind() 279 if (const skjson::ArrayValue* ja = jv) { in bind() 286 [](const skjson in bind() 236 parseKFValue(const AnimationBuilder&, const skjson::ObjectValue&, const skjson::Value& jv, Keyframe::Value* kfv) parseKFValue() argument [all...] |
/third_party/skia/modules/skottie/src/text/ |
H A D | TextValue.cpp | 16 bool Parse(const skjson::Value& jv, const internal::AnimationBuilder& abuilder, TextValue* v) { in Parse() 17 const skjson::ObjectValue* jtxt = jv; in Parse() 22 const skjson::StringValue* font_name = (*jtxt)["f"]; in Parse() 23 const skjson::StringValue* text = (*jtxt)["t"]; in Parse() 24 const skjson::NumberValue* text_size = (*jtxt)["s"]; in Parse() 25 const skjson::NumberValue* line_height = (*jtxt)["lh"]; in Parse() 52 if (const skjson::ArrayValue* jsz = (*jtxt)["sz"]) { in Parse() 60 if (const skjson::ArrayValue* jps = (*jtxt)["ps"]) { in Parse() 140 const auto& parse_color = [] (const skjson::ArrayValue* jcolor, in Parse()
|