From 70c3a7f8d344c3966ffcbb34653397dc3f69944c Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Thu, 13 Jul 2023 15:43:16 -0700 Subject: [PATCH] [Impeller] no-op fragment program on Android until it works. (flutter/engine#43657) The framework has switched into mat3 by default, which means the fragment program ink sparkle has replaced the default ink splash. Since this is not implemented, all of the impeller benchmarks are crashign. No-op this so we at least get benchmark numbers until its implemented. --- .../impeller/entity/contents/runtime_effect_contents.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine/src/flutter/impeller/entity/contents/runtime_effect_contents.cc b/engine/src/flutter/impeller/entity/contents/runtime_effect_contents.cc index c3798abdb0..ba2dff69c4 100644 --- a/engine/src/flutter/impeller/entity/contents/runtime_effect_contents.cc +++ b/engine/src/flutter/impeller/entity/contents/runtime_effect_contents.cc @@ -44,6 +44,13 @@ bool RuntimeEffectContents::CanInheritOpacity(const Entity& entity) const { bool RuntimeEffectContents::Render(const ContentContext& renderer, const Entity& entity, RenderPass& pass) const { +// TODO(jonahwilliams): FragmentProgram API is not fully wired up on Android. +// Disable until this is complete so that integration tests and benchmarks can +// run m3 applications. +#ifdef FML_OS_ANDROID + return true; +#endif + auto context = renderer.GetContext(); auto library = context->GetShaderLibrary();