From 9bfd0ae0e0349fcdc96e53aac1a048b2e4fdff6d Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Tue, 9 Jul 2024 15:56:05 -0700 Subject: [PATCH 1/2] [Impeller] Update docs that specify how to select the Impeller backend. --- impeller/README.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/impeller/README.md b/impeller/README.md index cc3255cf536a9..a448b30dc7e30 100644 --- a/impeller/README.md +++ b/impeller/README.md @@ -197,7 +197,7 @@ Flutter enables Impeller by **default** on iOS. To **disable** Impeller on iOS, update your `Info.plist` file to add the following under the top-level `` tag: -``` +```xml FLTEnableImpeller ``` @@ -207,18 +207,31 @@ under the top-level `` tag: Impeller is in preview on Android. To your `AndroidManifest.xml` file, add under the `` tag: -``` + +```xml ``` +Impeller will use Vulkan on Android by default when opted into. Where Vulkan +is unavalable, Impeller will fallback to Skia. However, Impellers OpenGL backend +is well under construction. To try that with your application, add the following +under the `` tag: + +```xml + +``` + ### macOS Desktop Impeller is in preview on macOS Desktop. To your `Info.plist` file, add under the top-level `` tag: -``` + +```xml FLTEnableImpeller ``` From 383039b2a4c851e2c8d3624276f78083cdf41bb7 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Tue, 9 Jul 2024 16:02:35 -0700 Subject: [PATCH 2/2] Update README.md --- impeller/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/impeller/README.md b/impeller/README.md index a448b30dc7e30..38045013a6fbf 100644 --- a/impeller/README.md +++ b/impeller/README.md @@ -215,10 +215,14 @@ To your `AndroidManifest.xml` file, add under the `` tag: ``` Impeller will use Vulkan on Android by default when opted into. Where Vulkan -is unavalable, Impeller will fallback to Skia. However, Impellers OpenGL backend +is unavailable, Impeller will fallback to Skia. However, Impellers OpenGL backend is well under construction. To try that with your application, add the following under the `` tag: +> [!Warning] +> Selecting the Impeller backend this way will only work in `debug` and `profile` +> runtime modes. + ```xml