Flutter Engine
The Flutter Engine
Macros | Functions
JetSki.cpp File Reference
#include <android/log.h>
#include <jni.h>

Go to the source code of this file.

Macros

#define REGISTER_NATIVES(class_name)
 

Functions

JNIEXPORT jint JNI_OnLoad (JavaVM *vm, void *reserved)
 

Macro Definition Documentation

◆ REGISTER_NATIVES

#define REGISTER_NATIVES (   class_name)
Value:
extern int register_jetski_##class_name(JNIEnv*); \
if (auto rc = register_jetski_##class_name(env)) { \
__android_log_print(ANDROID_LOG_ERROR, "JetSki", \
"Failed to load natives: " #class_name); \
return rc; \
}
const char *const class_name
Definition: __init__.py:1

Definition at line 11 of file JetSki.cpp.

Function Documentation

◆ JNI_OnLoad()

JNIEXPORT jint JNI_OnLoad ( JavaVM *  vm,
void *  reserved 
)

Definition at line 20 of file JetSki.cpp.

20 {
21 JNIEnv* env;
22 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) {
23 return JNI_ERR;
24 }
25
26 REGISTER_NATIVES(Canvas)
28 REGISTER_NATIVES(ComposeColorFilter)
29 REGISTER_NATIVES(HSLAMatrixColorFilter)
31 REGISTER_NATIVES(ImageFilter)
34 REGISTER_NATIVES(MatrixColorFilter)
37 REGISTER_NATIVES(PathBuilder)
39 REGISTER_NATIVES(RuntimeShaderBuilder)
40 REGISTER_NATIVES(Shader)
45
46 return JNI_VERSION_1_6;
47}
#define REGISTER_NATIVES(class_name)
Definition: JetSki.cpp:11
CanvasImage Image
Definition: dart_ui.cc:55
CanvasPath Path
Definition: dart_ui.cc:58
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()