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

Commit be95aab

Browse files
author
jonahwilliams
committed
[android] remove fml_check.
1 parent 9384df4 commit be95aab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

shell/platform/android/surface_texture_external_texture.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ void SurfaceTextureExternalTexture::Paint(PaintContext& context,
5252
if (should_process_frame) {
5353
ProcessFrame(context, bounds);
5454
}
55-
FML_CHECK(state_ == AttachmentState::kAttached);
55+
// If process frame failed, this may not be in attached state.
56+
if (state_ != AttachmentState::kAttached) {
57+
return;
58+
}
5659

5760
if (!dl_image_) {
5861
FML_LOG(WARNING)

0 commit comments

Comments
 (0)