From be95aab3f530a57f1d7b7e2e114145ced8f2726a Mon Sep 17 00:00:00 2001 From: jonahwilliams Date: Fri, 22 Nov 2024 10:58:33 -0800 Subject: [PATCH] [android] remove fml_check. --- shell/platform/android/surface_texture_external_texture.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell/platform/android/surface_texture_external_texture.cc b/shell/platform/android/surface_texture_external_texture.cc index 31a14d37a716b..447fb2bc0f269 100644 --- a/shell/platform/android/surface_texture_external_texture.cc +++ b/shell/platform/android/surface_texture_external_texture.cc @@ -52,7 +52,10 @@ void SurfaceTextureExternalTexture::Paint(PaintContext& context, if (should_process_frame) { ProcessFrame(context, bounds); } - FML_CHECK(state_ == AttachmentState::kAttached); + // If process frame failed, this may not be in attached state. + if (state_ != AttachmentState::kAttached) { + return; + } if (!dl_image_) { FML_LOG(WARNING)