From 1d21ee3496079b36cb9c1822a4ca84d666340112 Mon Sep 17 00:00:00 2001 From: jonahwilliams Date: Tue, 17 Dec 2024 11:23:32 -0800 Subject: [PATCH] Remove incorrect 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 9ace4b1c41d6d..7f0511138b479 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)