Remove WARNINGs from JNI load path as we can't suppress them (flutter/engine#44348)
Help unblock roll
This commit is contained in:
@@ -1193,8 +1193,6 @@ bool PlatformViewAndroid::Register(JNIEnv* env) {
|
|||||||
"()Landroid/hardware/HardwareBuffer;");
|
"()Landroid/hardware/HardwareBuffer;");
|
||||||
|
|
||||||
if (g_image_get_hardware_buffer_method == nullptr) {
|
if (g_image_get_hardware_buffer_method == nullptr) {
|
||||||
FML_LOG(WARNING) << "Could not locate getHardwareBuffer on "
|
|
||||||
"android.media.Image";
|
|
||||||
// Continue on as this method may not exist at API <= 29.
|
// Continue on as this method may not exist at API <= 29.
|
||||||
fml::jni::ClearException(env);
|
fml::jni::ClearException(env);
|
||||||
}
|
}
|
||||||
@@ -1215,14 +1213,10 @@ bool PlatformViewAndroid::Register(JNIEnv* env) {
|
|||||||
g_hardware_buffer_close_method =
|
g_hardware_buffer_close_method =
|
||||||
env->GetMethodID(g_hardware_buffer_class->obj(), "close", "()V");
|
env->GetMethodID(g_hardware_buffer_class->obj(), "close", "()V");
|
||||||
if (g_hardware_buffer_close_method == nullptr) {
|
if (g_hardware_buffer_close_method == nullptr) {
|
||||||
FML_LOG(WARNING)
|
|
||||||
<< "Could not locate close on android.hardware.HardwareBuffer";
|
|
||||||
// Continue on as this class may not exist at API <= 26.
|
// Continue on as this class may not exist at API <= 26.
|
||||||
fml::jni::ClearException(env);
|
fml::jni::ClearException(env);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
FML_LOG(WARNING)
|
|
||||||
<< "Could not locate android.hardware.HardwareBuffer class";
|
|
||||||
// Continue on as this class may not exist at API <= 26.
|
// Continue on as this class may not exist at API <= 26.
|
||||||
fml::jni::ClearException(env);
|
fml::jni::ClearException(env);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user