Skip to content

Commit

Permalink
[Impeller] no-op fragment program on Android until it works. (#43657) (
Browse files Browse the repository at this point in the history
…#44068)

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 crashing.
  • Loading branch information
jonahwilliams authored Aug 2, 2023
1 parent 0dd4bbb commit d003ac1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions impeller/entity/contents/runtime_effect_contents.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit d003ac1

Please sign in to comment.