Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Remove WARNINGs from JNI load path as we can't suppress them #44348

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions shell/platform/android/platform_view_android_jni_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down