Flutter Engine
The Flutter Engine
Functions
Matrix.cpp File Reference
#include <jni.h>
#include "include/core/SkM44.h"
#include <algorithm>

Go to the source code of this file.

Functions

int register_jetski_Matrix (JNIEnv *env)
 

Function Documentation

◆ register_jetski_Matrix()

int register_jetski_Matrix ( JNIEnv *  env)

Definition at line 110 of file Matrix.cpp.

110 {
111 static const JNINativeMethod methods[] = {
112 {"nCreate" , "(FFFFFFFFFFFFFFFF)J" , reinterpret_cast<void*>(Matrix_Create)},
113 {"nCreateLookAt" , "(FFFFFFFFF)J" , reinterpret_cast<void*>(Matrix_CreateLookAt)},
114 {"nCreatePerspective" , "(FFF)J" , reinterpret_cast<void*>(Matrix_CreatePerspective)},
115 {"nGetRowMajor" , "(J)[F" , reinterpret_cast<void*>(Matrix_GetRowMajor)},
116 {"nRelease" , "(J)V" , reinterpret_cast<void*>(Matrix_Release)},
117 {"nInverse" , "(J)J" , reinterpret_cast<void*>(Matrix_Inverse)},
118 {"nTranspose" , "(J)J" , reinterpret_cast<void*>(Matrix_Transpose)},
119 {"nPreConcat" , "(JJ)V" , reinterpret_cast<void*>(Matrix_PreConcat)},
120 {"nConcat" , "(JJ)J" , reinterpret_cast<void*>(Matrix_Concat)},
121 {"nTranslate" , "(JFFF)V" , reinterpret_cast<void*>(Matrix_Translate)},
122 {"nScale" , "(JFFF)V" , reinterpret_cast<void*>(Matrix_Scale)},
123 {"nRotate" , "(JFFFF)V" , reinterpret_cast<void*>(Matrix_Rotate)},
124 };
125
126 const auto clazz = env->FindClass("org/skia/jetski/Matrix");
127 return clazz
128 ? env->RegisterNatives(clazz, methods, std::size(methods))
129 : JNI_ERR;
130}
Definition: __init__.py:1
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259