/external/skia/modules/skottie/src/ |
D | SkottiePriv.h | 25 namespace skjson { 50 std::unique_ptr<sksg::Scene> parse(const skjson::ObjectValue&); 57 bool bindProperty(const skjson::Value&, 63 bool bindProperty(const skjson::Value& jv, in bindProperty() 70 void log(Logger::Level, const skjson::Value*, const char fmt[], ...) const; 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*, 80 sk_sp<sksg::Path> attachPath(const skjson::Value&, AnimatorScope*) const; [all …]
|
D | SkottieLayerEffect.cpp | 23 sk_sp<sksg::RenderNode> AttachTintLayerEffect(const skjson::ArrayValue& jprops, in AttachTintLayerEffect() 40 const skjson::ObjectValue* color0_prop = jprops[kMapBlackTo_Index]; in AttachTintLayerEffect() 41 const skjson::ObjectValue* color1_prop = jprops[kMapWhiteTo_Index]; in AttachTintLayerEffect() 42 const skjson::ObjectValue* amount_prop = jprops[ kAmount_Index]; in AttachTintLayerEffect() 64 sk_sp<sksg::RenderNode> AttachTritoneLayerEffect(const skjson::ArrayValue& jprops, in AttachTritoneLayerEffect() 81 const skjson::ObjectValue* hicolor_prop = jprops[ kHiColor_Index]; in AttachTritoneLayerEffect() 82 const skjson::ObjectValue* micolor_prop = jprops[ kMiColor_Index]; in AttachTritoneLayerEffect() 83 const skjson::ObjectValue* locolor_prop = jprops[ kLoColor_Index]; in AttachTritoneLayerEffect() 84 const skjson::ObjectValue* blend_prop = jprops[kBlendAmount_Index]; in AttachTritoneLayerEffect() 107 sk_sp<sksg::RenderNode> AttachFillLayerEffect(const skjson::ArrayValue& jprops, in AttachFillLayerEffect() [all …]
|
D | SkottieTextLayer.cpp | 86 void AnimationBuilder::parseFonts(const skjson::ObjectValue* jfonts, in parseFonts() 87 const skjson::ArrayValue* jchars) { in parseFonts() 105 if (const skjson::ArrayValue* jlist = (*jfonts)["list"]) { in parseFonts() 106 for (const skjson::ObjectValue* jfont : *jlist) { in parseFonts() 111 const skjson::StringValue* jname = (*jfont)["fName"]; in parseFonts() 112 const skjson::StringValue* jfamily = (*jfont)["fFamily"]; in parseFonts() 113 const skjson::StringValue* jstyle = (*jfont)["fStyle"]; in parseFonts() 114 const skjson::StringValue* jpath = (*jfont)["fPath"]; in parseFonts() 178 for (const skjson::ObjectValue* jchar : *jchars) { in parseFonts() 183 const skjson::StringValue* jch = (*jchar)["ch"]; in parseFonts() [all …]
|
D | SkottieLayer.cpp | 67 sk_sp<sksg::RenderNode> AttachMask(const skjson::ArrayValue* jmask, in AttachMask() 83 for (const skjson::ObjectValue* m : *jmask) { in AttachMask() 86 const skjson::StringValue* jmode = (*m)["mode"]; in AttachMask() 243 const skjson::ObjectValue& jlayer, AnimatorScope* ascope, in attachAssetRef() 244 const std::function<sk_sp<sksg::RenderNode>(const skjson::ObjectValue&, in attachAssetRef() 276 sk_sp<sksg::RenderNode> AnimationBuilder::attachSolidLayer(const skjson::ObjectValue& jlayer, in attachSolidLayer() 281 const skjson::StringValue* hex_str = jlayer["sc"]; in attachSolidLayer() 298 AnimationBuilder::loadImageAsset(const skjson::ObjectValue& jimage) const { in loadImageAsset() 299 const skjson::StringValue* name = jimage["p"]; in loadImageAsset() 300 const skjson::StringValue* path = jimage["u"]; in loadImageAsset() [all …]
|
D | SkottieAnimator.cpp | 63 virtual int parseValue(const skjson::Value&, const AnimationBuilder* abuilder) = 0; 65 void parseKeyFrames(const skjson::ArrayValue& jframes, const AnimationBuilder* abuilder) { in parseKeyFrames() 66 for (const skjson::ObjectValue* jframe : jframes) { in parseKeyFrames() 178 static std::unique_ptr<KeyframeAnimator> Make(const skjson::ArrayValue* jv, in Make() 197 KeyframeAnimator(const skjson::ArrayValue& jframes, in KeyframeAnimator() 213 int parseValue(const skjson::Value& jv, const AnimationBuilder* abuilder) override { in parseValue() 256 static inline bool BindPropertyImpl(const skjson::ObjectValue* jprop, in BindPropertyImpl() 266 if (!(*jprop)["x"].is<skjson::NullValue>()) { in BindPropertyImpl() 283 if (!jpropA.is<skjson::NullValue>()) { in BindPropertyImpl() 305 static std::unique_ptr<SplitPointAnimator> Make(const skjson::ObjectValue* jprop, in Make() [all …]
|
D | SkottieValue.cpp | 20 bool ValueTraits<ScalarValue>::FromJSON(const skjson::Value& jv, const internal::AnimationBuilder*, in FromJSON() 44 bool ValueTraits<VectorValue>::FromJSON(const skjson::Value& jv, const internal::AnimationBuilder*, in FromJSON() 99 bool ParsePointVec(const skjson::Value& jv, std::vector<SkPoint>* pts) { in ParsePointVec() 100 if (!jv.is<skjson::ArrayValue>()) in ParsePointVec() 102 const auto& av = jv.as<skjson::ArrayValue>(); in ParsePointVec() 120 bool ValueTraits<ShapeValue>::FromJSON(const skjson::Value& jv, in FromJSON() 126 if (const skjson::ArrayValue* av = jv) { in FromJSON() 132 if (!jv.is<skjson::ObjectValue>()) in FromJSON() 134 const auto& ov = jv.as<skjson::ObjectValue>(); in FromJSON() 248 bool ValueTraits<TextValue>::FromJSON(const skjson::Value& jv, in FromJSON() [all …]
|
D | SkottieShapeLayer.cpp | 35 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 …]
|
D | Skottie.cpp | 43 void AnimationBuilder::log(Logger::Level lvl, const skjson::Value* json, in log() 70 sk_sp<sksg::Transform> AnimationBuilder::attachMatrix2D(const skjson::ObjectValue& t, in attachMatrix2D() 93 if (jrotation->is<skjson::NullValue>()) { in attachMatrix2D() 118 sk_sp<sksg::Transform> AnimationBuilder::attachMatrix3D(const skjson::ObjectValue& t, in attachMatrix3D() 172 sk_sp<sksg::RenderNode> AnimationBuilder::attachOpacity(const skjson::ObjectValue& jtransform, in attachOpacity() 193 static SkBlendMode GetBlendMode(const skjson::ObjectValue& jobject, in GetBlendMode() 226 sk_sp<sksg::RenderNode> AnimationBuilder::attachBlendMode(const skjson::ObjectValue& jobject, in attachBlendMode() 237 sk_sp<sksg::Path> AnimationBuilder::attachPath(const skjson::Value& jpath, in attachPath() 251 sk_sp<sksg::Color> AnimationBuilder::attachColor(const skjson::ObjectValue& jcolor, in attachColor() 280 std::unique_ptr<sksg::Scene> AnimationBuilder::parse(const skjson::ObjectValue& jroot) { in parse() [all …]
|
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()
|
D | SkottiePrecompLayer.cpp | 21 sk_sp<sksg::RenderNode> AnimationBuilder::attachPrecompLayer(const skjson::ObjectValue& jlayer, in attachPrecompLayer() 24 const skjson::ObjectValue* time_remap = jlayer["tm"]; in attachPrecompLayer() 35 [this] (const skjson::ObjectValue& jcomp, in attachPrecompLayer()
|
D | SkottieJson.h | 21 bool Parse(const skjson::Value&, T*); 24 T ParseDefault(const skjson::Value& v, const T& defaultValue) { in ParseDefault()
|
/external/skqp/modules/skottie/src/ |
D | SkottiePriv.h | 25 namespace skjson { 50 std::unique_ptr<sksg::Scene> parse(const skjson::ObjectValue&); 57 bool bindProperty(const skjson::Value&, 63 bool bindProperty(const skjson::Value& jv, in bindProperty() 70 void log(Logger::Level, const skjson::Value*, const char fmt[], ...) const; 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*, 80 sk_sp<sksg::Path> attachPath(const skjson::Value&, AnimatorScope*) const; [all …]
|
D | SkottieTextLayer.cpp | 86 void AnimationBuilder::parseFonts(const skjson::ObjectValue* jfonts, in parseFonts() 87 const skjson::ArrayValue* jchars) { in parseFonts() 105 if (const skjson::ArrayValue* jlist = (*jfonts)["list"]) { in parseFonts() 106 for (const skjson::ObjectValue* jfont : *jlist) { in parseFonts() 111 const skjson::StringValue* jname = (*jfont)["fName"]; in parseFonts() 112 const skjson::StringValue* jfamily = (*jfont)["fFamily"]; in parseFonts() 113 const skjson::StringValue* jstyle = (*jfont)["fStyle"]; in parseFonts() 114 const skjson::StringValue* jpath = (*jfont)["fPath"]; in parseFonts() 178 for (const skjson::ObjectValue* jchar : *jchars) { in parseFonts() 183 const skjson::StringValue* jch = (*jchar)["ch"]; in parseFonts() [all …]
|
D | SkottieLayer.cpp | 67 sk_sp<sksg::RenderNode> AttachMask(const skjson::ArrayValue* jmask, in AttachMask() 83 for (const skjson::ObjectValue* m : *jmask) { in AttachMask() 86 const skjson::StringValue* jmode = (*m)["mode"]; in AttachMask() 241 const skjson::ObjectValue& jlayer, AnimatorScope* ascope, in attachAssetRef() 242 const std::function<sk_sp<sksg::RenderNode>(const skjson::ObjectValue&, in attachAssetRef() 274 sk_sp<sksg::RenderNode> AnimationBuilder::attachSolidLayer(const skjson::ObjectValue& jlayer, in attachSolidLayer() 279 const skjson::StringValue* hex_str = jlayer["sc"]; in attachSolidLayer() 296 AnimationBuilder::loadImageAsset(const skjson::ObjectValue& jimage) const { in loadImageAsset() 297 const skjson::StringValue* name = jimage["p"]; in loadImageAsset() 298 const skjson::StringValue* path = jimage["u"]; in loadImageAsset() [all …]
|
D | SkottieAnimator.cpp | 63 virtual int parseValue(const skjson::Value&, const AnimationBuilder* abuilder) = 0; 65 void parseKeyFrames(const skjson::ArrayValue& jframes, const AnimationBuilder* abuilder) { in parseKeyFrames() 66 for (const skjson::ObjectValue* jframe : jframes) { in parseKeyFrames() 180 static std::unique_ptr<KeyframeAnimator> Make(const skjson::ArrayValue* jv, in Make() 199 KeyframeAnimator(const skjson::ArrayValue& jframes, in KeyframeAnimator() 215 int parseValue(const skjson::Value& jv, const AnimationBuilder* abuilder) override { in parseValue() 258 static inline bool BindPropertyImpl(const skjson::ObjectValue* jprop, in BindPropertyImpl() 268 if (!(*jprop)["x"].is<skjson::NullValue>()) { in BindPropertyImpl() 285 if (!jpropA.is<skjson::NullValue>()) { in BindPropertyImpl() 307 static std::unique_ptr<SplitPointAnimator> Make(const skjson::ObjectValue* jprop, in Make() [all …]
|
D | SkottieValue.cpp | 20 bool ValueTraits<ScalarValue>::FromJSON(const skjson::Value& jv, const internal::AnimationBuilder*, in FromJSON() 44 bool ValueTraits<VectorValue>::FromJSON(const skjson::Value& jv, const internal::AnimationBuilder*, in FromJSON() 99 bool ParsePointVec(const skjson::Value& jv, std::vector<SkPoint>* pts) { in ParsePointVec() 100 if (!jv.is<skjson::ArrayValue>()) in ParsePointVec() 102 const auto& av = jv.as<skjson::ArrayValue>(); in ParsePointVec() 120 bool ValueTraits<ShapeValue>::FromJSON(const skjson::Value& jv, in FromJSON() 126 if (const skjson::ArrayValue* av = jv) { in FromJSON() 132 if (!jv.is<skjson::ObjectValue>()) in FromJSON() 134 const auto& ov = jv.as<skjson::ObjectValue>(); in FromJSON() 248 bool ValueTraits<TextValue>::FromJSON(const skjson::Value& jv, in FromJSON() [all …]
|
D | SkottieShapeLayer.cpp | 35 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 …]
|
D | Skottie.cpp | 42 void AnimationBuilder::log(Logger::Level lvl, const skjson::Value* json, in log() 64 sk_sp<sksg::Transform> AnimationBuilder::attachMatrix2D(const skjson::ObjectValue& t, in attachMatrix2D() 87 if (jrotation->is<skjson::NullValue>()) { in attachMatrix2D() 112 sk_sp<sksg::Transform> AnimationBuilder::attachMatrix3D(const skjson::ObjectValue& t, in attachMatrix3D() 166 sk_sp<sksg::RenderNode> AnimationBuilder::attachOpacity(const skjson::ObjectValue& jtransform, in attachOpacity() 185 sk_sp<sksg::Path> AnimationBuilder::attachPath(const skjson::Value& jpath, in attachPath() 199 sk_sp<sksg::Color> AnimationBuilder::attachColor(const skjson::ObjectValue& jcolor, in attachColor() 227 std::unique_ptr<sksg::Scene> AnimationBuilder::parse(const skjson::ObjectValue& jroot) { in parse() 241 void AnimationBuilder::parseAssets(const skjson::ArrayValue* jassets) { in parseAssets() 246 for (const skjson::ObjectValue* asset : *jassets) { in parseAssets() [all …]
|
D | SkottieLayerEffect.cpp | 21 sk_sp<sksg::RenderNode> AttachFillLayerEffect(const skjson::ArrayValue* jeffect_props, in AttachFillLayerEffect() 44 const skjson::ObjectValue* color_prop = (*jeffect_props)[ kColor_Index]; in AttachFillLayerEffect() 45 const skjson::ObjectValue* opacity_prop = (*jeffect_props)[kOpacity_Index]; in AttachFillLayerEffect() 69 sk_sp<sksg::RenderNode> AnimationBuilder::attachLayerEffects(const skjson::ArrayValue& jeffects, in attachLayerEffects() 72 for (const skjson::ObjectValue* jeffect : jeffects) { in attachLayerEffects()
|
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()
|
D | SkottiePrecompLayer.cpp | 21 sk_sp<sksg::RenderNode> AnimationBuilder::attachPrecompLayer(const skjson::ObjectValue& jlayer, in attachPrecompLayer() 24 const skjson::ObjectValue* time_remap = jlayer["tm"]; in attachPrecompLayer() 35 [this] (const skjson::ObjectValue& jcomp, in attachPrecompLayer()
|
D | SkottieJson.h | 21 bool Parse(const skjson::Value&, T*); 24 T ParseDefault(const skjson::Value& v, const T& defaultValue) { in ParseDefault()
|
/external/skia/modules/particles/include/ |
D | SkParticleSerialization.h | 77 SkFromJsonVisitor(const skjson::Value& v) : fRoot(v) { in SkFromJsonVisitor() 101 if (const skjson::ObjectValue* obj = get(name)) { in visit() 108 const skjson::ArrayValue* arr = get(name); in visit() 118 const skjson::StringValue* typeString = get("Type"); in visit() 124 fStack.push_back((const skjson::ObjectValue*)get(name)); in enterObject() 131 const skjson::ArrayValue* arrVal = get(name); in enterArray() 143 const skjson::Value& get(const char* name) { in get() 144 if (const skjson::Value* cur = fStack.back()) { in get() 145 if (cur->is<skjson::ArrayValue>()) { in get() 147 return cur->as<skjson::ArrayValue>()[fArrayIndexStack.back()++]; in get() [all …]
|
/external/skia/tools/bookmaker/ |
D | fiddleParser.cpp | 34 const skjson::ObjectValue* obj = status->fObjectIter->fValue; in parseFiddles() 38 if (!iter->fValue.is<skjson::ArrayValue>()) { in parseFiddles() 41 if (iter->fValue.as<skjson::ArrayValue>().size()) { in parseFiddles() 47 if (!iter->fValue.is<skjson::StringValue>()) { in parseFiddles() 50 if (iter->fValue.as<skjson::StringValue>().size()) { in parseFiddles() 56 const skjson::StringValue* sv = iter->fValue; in parseFiddles() 71 const skjson::StringValue* sv = iter->fValue; in parseFiddles()
|
D | parserCommon.h | 260 const skjson::ArrayValue* fArray; 261 const skjson::Value* fArrayIter; 262 const skjson::ObjectValue* fObject; 263 const skjson::Member* fObjectIter; 267 static JsonStatus Make(const skjson::Value& value, string name, StatusFilter filter) { in Make() 296 const skjson::Value& current() const { in current() 317 std::unique_ptr<skjson::DOM> fDom;
|