Skip to content

Commit

Permalink
[Impeller] enable OpenGL fallback on Android. (flutter#56591)
Browse files Browse the repository at this point in the history
Ship impeller OpenGLES on non-vulkan android devices

Fixes flutter/flutter#158361
  • Loading branch information
jonahwilliams authored Nov 15, 2024
1 parent 644f85e commit 5f8e6e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shell/platform/android/flutter_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ AndroidRenderingAPI FlutterMain::SelectedRenderingAPI(
return AndroidRenderingAPI::kSoftware;
}
constexpr AndroidRenderingAPI kVulkanUnsupportedFallback =
AndroidRenderingAPI::kSkiaOpenGLES;
AndroidRenderingAPI::kImpellerOpenGLES;

// Debug/Profile only functionality for testing a specific
// backend configuration.
Expand Down
2 changes: 1 addition & 1 deletion shell/platform/android/platform_view_android_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ TEST(AndroidPlatformView, SelectsVulkanBasedOnApiLevel) {
AndroidRenderingAPI::kImpellerVulkan);
} else {
EXPECT_EQ(FlutterMain::SelectedRenderingAPI(settings),
AndroidRenderingAPI::kSkiaOpenGLES);
AndroidRenderingAPI::kImpellerOpenGLES);
}
}

Expand Down

0 comments on commit 5f8e6e4

Please sign in to comment.