Lines Matching refs:skottie
33 class SkottieAssetProvider : public skottie::ResourceProvider {
51 sk_sp<skottie::ImageAsset> loadImageAsset(const char[] /* path */, in loadImageAsset()
88 auto animation = skottie::Animation::Builder() in Make()
162 ManagedAnimation(sk_sp<skottie::Animation> animation, in ManagedAnimation()
167 sk_sp<skottie::Animation> fAnimation;
176 class_<skottie::Animation>("Animation") in EMSCRIPTEN_BINDINGS()
177 .smart_ptr<sk_sp<skottie::Animation>>("sk_sp<Animation>") in EMSCRIPTEN_BINDINGS()
178 .function("version", optional_override([](skottie::Animation& self)->std::string { in EMSCRIPTEN_BINDINGS()
181 .function("size", &skottie::Animation::size) in EMSCRIPTEN_BINDINGS()
182 .function("duration", &skottie::Animation::duration) in EMSCRIPTEN_BINDINGS()
183 .function("seek", optional_override([](skottie::Animation& self, SkScalar t)->void { in EMSCRIPTEN_BINDINGS()
186 .function("render", optional_override([](skottie::Animation& self, SkCanvas* canvas)->void { in EMSCRIPTEN_BINDINGS()
189 .function("render", optional_override([](skottie::Animation& self, SkCanvas* canvas, in EMSCRIPTEN_BINDINGS()
194 function("MakeAnimation", optional_override([](std::string json)->sk_sp<skottie::Animation> { in EMSCRIPTEN_BINDINGS()
195 return skottie::Animation::Make(json.c_str(), json.length()); in EMSCRIPTEN_BINDINGS()