[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.
This commit is contained in:
Jonah Williams
2023-07-13 15:43:16 -07:00
committed by GitHub
parent b7472f9a45
commit 70c3a7f8d3

View File

@@ -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();