148 {
149
150 if (!runner) {
151 return 0;
152 }
154
155 const void*
buffer =
env->GetDirectBufferAddress(bufferObj);
156 jlong bufferSize =
env->GetDirectBufferCapacity(bufferObj);
157 if (
buffer ==
nullptr || bufferSize <= 0) {
158 return 0;
159 }
160
162 jobject bufferRef =
env->NewGlobalRef(bufferObj);
163 if (bufferRef == nullptr) {
164 return 0;
165 }
166
168 reinterpret_cast<void*>(bufferRef)));
171
172 return 0;
173 }
174
176 skottieAnimation->
mRunner = skottieRunner;
178
180
184
186
187
190 .setTextShapingFactory(sk_make_sp<SkShapers::HarfbuzzFactory>())
191 .make(skottieAnimation->
mStream.get());
194
196
197 delete skottieAnimation;
198 return 0;
199 }
200
201 return (jlong) skottieAnimation;
202}
SK_API sk_sp< SkFontMgr > SkFontMgr_New_Custom_Empty()
static sk_sp< SkData > MakeWithProc(const void *ptr, size_t length, ReleaseProc proc, void *ctx)
static std::unique_ptr< SkMemoryStream > Make(sk_sp< SkData > data)
static sk_sp< DataURIResourceProviderProxy > Make(sk_sp< ResourceProvider > rp, ImageDecodeStrategy=ImageDecodeStrategy::kLazyDecode, sk_sp< const SkFontMgr > fontMgr=nullptr)
void SK_API Register(Decoder d)
constexpr SkCodecs::Decoder Decoder()
constexpr SkCodecs::Decoder Decoder()
constexpr SkCodecs::Decoder Decoder()
DlVertices::Builder Builder
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
static void release_global_jni_ref(const void *, void *context)
std::unique_ptr< SkStream > mStream
sk_sp< skottie::Animation > mAnimation
std::shared_ptr< const fml::Mapping > data