Flutter Engine
The Flutter Engine
Functions
Canvas.cpp File Reference
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkPaint.h"
#include "include/core/SkRRect.h"
#include "include/core/SkShader.h"
#include "modules/jetski/src/Utils.h"
#include <jni.h>

Go to the source code of this file.

Functions

int register_jetski_Canvas (JNIEnv *env)
 

Function Documentation

◆ register_jetski_Canvas()

int register_jetski_Canvas ( JNIEnv *  env)

Definition at line 190 of file Canvas.cpp.

190 {
191 static const JNINativeMethod methods[] = {
192 {"nGetWidth" , "(J)I" , reinterpret_cast<void*>(Canvas_GetWidth) },
193 {"nGetHeight" , "(J)I" , reinterpret_cast<void*>(Canvas_GetHeight) },
194 {"nSave" , "(J)I" , reinterpret_cast<void*>(Canvas_Save) },
195 {"nSaveLayer" , "(JJ)I" , reinterpret_cast<void*>(Canvas_SaveLayer) },
196 {"nRestore" , "(J)V" , reinterpret_cast<void*>(Canvas_Restore) },
197 {"nRestoreToCount" , "(JI)V" , reinterpret_cast<void*>(Canvas_RestoreToCount)},
198 {"nGetLocalToDevice", "(J)J" , reinterpret_cast<void*>(Canvas_LocalToDevice) },
199 {"nConcat" , "(JJ)V" , reinterpret_cast<void*>(Canvas_Concat) },
200 {"nConcat16f" , "(J[F)V" , reinterpret_cast<void*>(Canvas_Concat16f) },
201 {"nTranslate" , "(JFFF)V" , reinterpret_cast<void*>(Canvas_Translate) },
202 {"nScale" , "(JFFF)V" , reinterpret_cast<void*>(Canvas_Scale) },
203 {"nClipPath" , "(JJIZ)V" , reinterpret_cast<void*>(Canvas_ClipPath) },
204 {"nClipRect" , "(JFFFFIZ)V" , reinterpret_cast<void*>(Canvas_ClipRect) },
205 {"nClipRRect" , "(JFFFFFFIZ)V" , reinterpret_cast<void*>(Canvas_ClipRRect) },
206 {"nClipShader" , "(JJI)V" , reinterpret_cast<void*>(Canvas_ClipShader) },
207 {"nDrawColor" , "(JFFFF)V" , reinterpret_cast<void*>(Canvas_DrawColor) },
208 {"nDrawRect" , "(JFFFFJ)V" , reinterpret_cast<void*>(Canvas_DrawRect) },
209 {"nDrawImage" , "(JJFFIFF)V" , reinterpret_cast<void*>(Canvas_DrawImage) },
210 {"nDrawPath" , "(JJJ)V" , reinterpret_cast<void*>(Canvas_DrawPath) },
211 {"nDrawGlyphs" , "(J[C[FFFJJ)V", reinterpret_cast<void*>(Canvas_DrawGlyphs) },
212
213 };
214
215 const auto clazz = env->FindClass("org/skia/jetski/Canvas");
216 return clazz
217 ? env->RegisterNatives(clazz, methods, std::size(methods))
218 : JNI_ERR;
219}
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