From d0cf81dfe08d35e74aeec73ba1350a79c497a5c2 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Fri, 15 Nov 2024 08:48:05 -0800 Subject: [PATCH] [Impeller] enable OpenGL fallback on Android. (flutter/engine#56591) Ship impeller OpenGLES on non-vulkan android devices Fixes https://github.com/flutter/flutter/issues/158361 --- engine/src/flutter/shell/platform/android/flutter_main.cc | 2 +- .../shell/platform/android/platform_view_android_unittests.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/shell/platform/android/flutter_main.cc b/engine/src/flutter/shell/platform/android/flutter_main.cc index 184a2e98d4..4159d3713c 100644 --- a/engine/src/flutter/shell/platform/android/flutter_main.cc +++ b/engine/src/flutter/shell/platform/android/flutter_main.cc @@ -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. diff --git a/engine/src/flutter/shell/platform/android/platform_view_android_unittests.cc b/engine/src/flutter/shell/platform/android/platform_view_android_unittests.cc index 3d7ed4f492..fc1c2d9d1b 100644 --- a/engine/src/flutter/shell/platform/android/platform_view_android_unittests.cc +++ b/engine/src/flutter/shell/platform/android/platform_view_android_unittests.cc @@ -22,7 +22,7 @@ TEST(AndroidPlatformView, SelectsVulkanBasedOnApiLevel) { AndroidRenderingAPI::kImpellerVulkan); } else { EXPECT_EQ(FlutterMain::SelectedRenderingAPI(settings), - AndroidRenderingAPI::kSkiaOpenGLES); + AndroidRenderingAPI::kImpellerOpenGLES); } }