8#include <android/log.h>
11#define REGISTER_NATIVES(class_name) \
12extern int register_jetski_##class_name(JNIEnv*); \
13if (auto rc = register_jetski_##class_name(env)) { \
14 __android_log_print(ANDROID_LOG_ERROR, "JetSki", \
15 "Failed to load natives: " #class_name); \
22 if (vm->GetEnv(
reinterpret_cast<void**
>(&
env), JNI_VERSION_1_6) != JNI_OK) {
46 return JNI_VERSION_1_6;
#define REGISTER_NATIVES(class_name)
JNIEXPORT jint JNI_OnLoad(JavaVM *vm, void *reserved)
SK_API sk_sp< PrecompileColorFilter > Matrix()
SK_API sk_sp< PrecompileShader > ColorFilter(SkSpan< const sk_sp< PrecompileShader > > shaders, SkSpan< const sk_sp< PrecompileColorFilter > > colorFilters)
SK_API sk_sp< PrecompileShader > LinearGradient()
SK_API sk_sp< PrecompileShader > RadialGradient()
SK_API sk_sp< PrecompileShader > SweepGradient()
SK_API sk_sp< PrecompileShader > TwoPointConicalGradient()