Flutter Engine
The Flutter Engine
Functions
Surface.cpp File Reference
#include "modules/jetski/src/Surface.h"
#include <android/bitmap.h>
#include <android/log.h>
#include "include/gpu/ganesh/SkSurfaceGanesh.h"
#include "include/core/SkPicture.h"
#include "tools/window/DisplayParams.h"
#include "tools/window/android/WindowContextFactory_android.h"

Go to the source code of this file.

Functions

int register_jetski_Surface (JNIEnv *env)
 

Function Documentation

◆ register_jetski_Surface()

int register_jetski_Surface ( JNIEnv *  env)

Definition at line 246 of file Surface.cpp.

246 {
247 static const JNINativeMethod methods[] = {
248 {"nCreateBitmap" , "(Landroid/graphics/Bitmap;)J",
249 reinterpret_cast<void*>(Surface_CreateBitmap) },
250 {"nCreateThreadedSurface" , "(Landroid/view/Surface;)J",
251 reinterpret_cast<void*>(Surface_CreateThreadedSurface) },
252 {"nCreateVKSurface" , "(Landroid/view/Surface;)J",
253 reinterpret_cast<void*>(Surface_CreateVK) },
254 {"nCreateGLSurface" , "(Landroid/view/Surface;)J",
255 reinterpret_cast<void*>(Surface_CreateGL) },
256 {"nRelease" , "(J)V", reinterpret_cast<void*>(Surface_Release) },
257 {"nGetNativeCanvas" , "(J)J", reinterpret_cast<void*>(Surface_GetNativeCanvas)},
258 {"nFlushAndSubmit" , "(J)V", reinterpret_cast<void*>(Surface_FlushAndSubmit) },
259 {"nGetWidth" , "(J)I", reinterpret_cast<void*>(Surface_GetWidth) },
260 {"nGetHeight" , "(J)I", reinterpret_cast<void*>(Surface_GetHeight) },
261 {"nMakeImageSnapshot", "(J)J", reinterpret_cast<void*>(Surface_MakeSnapshot) },
262 };
263
264 const auto clazz = env->FindClass("org/skia/jetski/Surface");
265 return clazz
266 ? env->RegisterNatives(clazz, methods, std::size(methods))
267 : JNI_ERR;
268}
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