#include <vsync_waiter_android.h>
Definition at line 19 of file vsync_waiter_android.h.
◆ VsyncWaiterAndroid()
◆ ~VsyncWaiterAndroid()
flutter::VsyncWaiterAndroid::~VsyncWaiterAndroid |
( |
| ) |
|
|
overridedefault |
◆ Register()
bool flutter::VsyncWaiterAndroid::Register |
( |
JNIEnv * |
env | ) |
|
|
static |
Definition at line 122 of file vsync_waiter_android.cc.
122 {
123 static const JNINativeMethod methods[] = {
124 {
125 .name = "nativeOnVsync",
126 .signature = "(JJJ)V",
127 .fnPtr = reinterpret_cast<void*>(&OnVsyncFromJava),
128 },
129 {
130 .name = "nativeUpdateRefreshRate",
131 .signature = "(F)V",
132 .fnPtr = reinterpret_cast<void*>(&OnUpdateRefreshRate),
133 }};
134
135 jclass clazz =
env->FindClass(
"io/flutter/embedding/engine/FlutterJNI");
136
137 if (clazz == nullptr) {
138 return false;
139 }
140
143
147
148 return env->RegisterNatives(clazz, methods,
fml::size(methods)) == 0;
149}
#define FML_CHECK(condition)
static fml::jni::ScopedJavaGlobalRef< jclass > * g_vsync_waiter_class
static jmethodID g_async_wait_for_vsync_method_
constexpr std::size_t size(T(&array)[N])
The documentation for this class was generated from the following files: