Remove WARNINGs from JNI load path as we can't suppress them (flutter/engine#44348)

Help unblock roll
This commit is contained in:
John McCutchan 2023-08-03 14:22:36 -07:00 committed by GitHub
parent 08b9787733
commit 6e79ecd59d

View File

@ -1193,8 +1193,6 @@ bool PlatformViewAndroid::Register(JNIEnv* env) {
"()Landroid/hardware/HardwareBuffer;");
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.
fml::jni::ClearException(env);
}
@ -1215,14 +1213,10 @@ bool PlatformViewAndroid::Register(JNIEnv* env) {
g_hardware_buffer_close_method =
env->GetMethodID(g_hardware_buffer_class->obj(), "close", "()V");
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.
fml::jni::ClearException(env);
}
} else {
FML_LOG(WARNING)
<< "Could not locate android.hardware.HardwareBuffer class";
// Continue on as this class may not exist at API <= 26.
fml::jni::ClearException(env);
}