Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
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
9 changes: 8 additions & 1 deletion impeller/toolkit/android/surface_control.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ bool SurfaceControl::RemoveFromParent() const {
}

bool SurfaceControl::IsAvailableOnPlatform() {
return GetProcTable().IsValid() &&
auto api_level = android_get_device_api_level();

// Technically SurfaceControl is supported on API 29 but I've observed
// enough reported bugs that I'm bumping the constraint to 30. If
// we had more time to test all of these older devices maybe we could
// figure out what the problem is.
// https://github.com/flutter/flutter/issues/155877
return api_level >= 30 && GetProcTable().IsValid() &&
GetProcTable().ASurfaceControl_createFromWindow.IsAvailable();
}

Expand Down